From 4dd1910d6d0d1b0cb69509505b93bb680aaf1afb Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Thu, 9 Mar 2017 15:08:49 +0200 Subject: [PATCH] Fixed the size of the local params array for WorldTick/UiTick --- src/events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events.cpp b/src/events.cpp index e2ccd8708..bd2b512ce 100755 --- a/src/events.cpp +++ b/src/events.cpp @@ -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); } }