diff --git a/sp/src/vscript/vscript_squirrel.cpp b/sp/src/vscript/vscript_squirrel.cpp index afb466f6..a2de0a96 100644 --- a/sp/src/vscript/vscript_squirrel.cpp +++ b/sp/src/vscript/vscript_squirrel.cpp @@ -1368,6 +1368,8 @@ SQInteger function_stub(HSQUIRRELVM vm) PushVariant(vm, retval); + retval.Free(); + return pFunc->m_desc.m_ReturnType != FIELD_VOID; }