Skip to content

Commit 0626572

Browse files
committed
xrWeatherEditor: fix STAThread
1 parent b1b2982 commit 0626572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xrCore/xrCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
3737
// Init COM so we can use CoCreateInstance
3838
// HRESULT co_res =
3939
Params = xr_strdup(GetCommandLine());
40-
if (!strstr(Params, "-editor"))
40+
if (!strstr(Params, "-weather"))
4141
CoInitializeEx(nullptr, COINIT_MULTITHREADED);
4242

4343
string_path fn, dr, di;

src/xrSound/OpenALDeviceList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void ALDeviceList::Enumerate()
169169
GetDeviceDesc(j).props.eax, GetDeviceDesc(j).props.efx ? "yes" : "no",
170170
GetDeviceDesc(j).props.xram ? "yes" : "no");
171171
}
172-
if (!strstr(GetCommandLine(), "-editor"))
172+
if (!strstr(GetCommandLine(), "-weather"))
173173
CoInitializeEx(nullptr, COINIT_MULTITHREADED);
174174
}
175175

0 commit comments

Comments
 (0)