Fixed a Mac debug build crash where CallAnimate attempted to pass one too many parameters to the VM.

This commit is contained in:
CandiceJoy 2022-12-23 04:33:22 -05:00 committed by Christoph Oelckers
parent 0b3076d2b4
commit a943652799

View file

@ -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;
}