From 11ba0be4c24ba8c1514b3a6dc7e5ea1c68ecda71 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 7 Jun 2020 11:34:58 +0300 Subject: [PATCH] - fixed setup of JIT functions that require extra frame space https://forum.zdoom.org/viewtopic.php?t=68816 --- src/common/scripting/jit/jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/scripting/jit/jit.cpp b/src/common/scripting/jit/jit.cpp index aa48585af..18ccb9246 100644 --- a/src/common/scripting/jit/jit.cpp +++ b/src/common/scripting/jit/jit.cpp @@ -277,7 +277,7 @@ void JitCompiler::SetupFrame() offsetD = offsetA + (int)(sfunc->NumRegA * sizeof(void*)); offsetExtra = (offsetD + (int)(sfunc->NumRegD * sizeof(int32_t)) + 15) & ~15; - if (sfunc->SpecialInits.Size() == 0 && sfunc->NumRegS == 0) + if (sfunc->SpecialInits.Size() == 0 && sfunc->NumRegS == 0 && sfunc->ExtraSpace == 0) { SetupSimpleFrame(); }