From a9436527995dfb854bf8e2113fdb0b825415ccc7 Mon Sep 17 00:00:00 2001 From: CandiceJoy Date: Fri, 23 Dec 2022 04:33:22 -0500 Subject: [PATCH] Fixed a Mac debug build crash where CallAnimate attempted to pass one too many parameters to the VM. --- source/games/duke/src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/game.cpp b/source/games/duke/src/game.cpp index d91066046..2a43d52f4 100644 --- a/source/games/duke/src/game.cpp +++ b/source/games/duke/src/game.cpp @@ -517,7 +517,7 @@ bool CallAnimate(DDukeActor* actor, tspritetype* tspr) { VMReturn ret(& nval); VMValue val[3] = { actor, tspr }; - VMCall(func, val, 3, &ret, 1); + VMCall(func, val, 2, &ret, 1); } return nval; }