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
1 changed files with 2 additions and 2 deletions

View File

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