Fixed the size of the local params array for WorldTick/UiTick

This commit is contained in:
ZZYZX 2017-03-09 15:08:49 +02:00 committed by Christoph Oelckers
parent 5eb20b7877
commit 4dd1910d6d

View file

@ -768,7 +768,7 @@ void DStaticEventHandler::WorldTick()
// don't create excessive DObjects if not going to be processed anyway // don't create excessive DObjects if not going to be processed anyway
if (func == DStaticEventHandler_WorldTick_VMPtr) if (func == DStaticEventHandler_WorldTick_VMPtr)
return; return;
VMValue params[2] = { (DStaticEventHandler*)this }; VMValue params[1] = { (DStaticEventHandler*)this };
GlobalVMStack.Call(func, params, 1, nullptr, 0, nullptr); GlobalVMStack.Call(func, params, 1, nullptr, 0, nullptr);
} }
} }
@ -977,7 +977,7 @@ void DStaticEventHandler::UiTick()
// don't create excessive DObjects if not going to be processed anyway // don't create excessive DObjects if not going to be processed anyway
if (func == DStaticEventHandler_UiTick_VMPtr) if (func == DStaticEventHandler_UiTick_VMPtr)
return; return;
VMValue params[2] = { (DStaticEventHandler*)this }; VMValue params[1] = { (DStaticEventHandler*)this };
GlobalVMStack.Call(func, params, 1, nullptr, 0, nullptr); GlobalVMStack.Call(func, params, 1, nullptr, 0, nullptr);
} }
} }