improved accuracy of call to LegoOmni::Create

This commit is contained in:
itsmattkc 2023-04-29 20:38:44 -07:00
parent bc56f56da9
commit 4570487067

View file

@ -249,9 +249,7 @@ BOOL Isle::setupLegoOmni()
char mediaPath[256];
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256);
MxOmniCreateParam createParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags());
if (Lego()->Create(createParam) != FAILURE) {
if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
VariableTable()->SetVariable("ACTOR_01", "");
TickleManager()->vtable1c(VideoManager(), 10);
return TRUE;