Slightly adjusted some prior changes

This commit is contained in:
Blixibon
2021-05-27 12:02:39 -05:00
parent e28813de7f
commit 1de46132d8
2 changed files with 3 additions and 2 deletions

View File

@@ -1406,7 +1406,8 @@ SQInteger function_stub(HSQUIRRELVM vm)
PushVariant(vm, retval);
retval.Free();
if (retval.m_type == FIELD_VECTOR)
delete retval.m_pVector;
return pFunc->m_desc.m_ReturnType != FIELD_VOID;
}