diff --git a/src/common/scripting/jit/jit.cpp b/src/common/scripting/jit/jit.cpp index 18ccb92464..6d141e652d 100644 --- a/src/common/scripting/jit/jit.cpp +++ b/src/common/scripting/jit/jit.cpp @@ -390,7 +390,7 @@ static void PopFullVMFrame(VMFrameStack *stack) void JitCompiler::EmitPopFrame() { - if (sfunc->SpecialInits.Size() != 0 || sfunc->NumRegS != 0) + if (sfunc->SpecialInits.Size() != 0 || sfunc->NumRegS != 0 || sfunc->ExtraSpace != 0) { auto popFrame = CreateCall(PopFullVMFrame); popFrame->setArg(0, stack);