We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3909d11 commit 5024bd0Copy full SHA for 5024bd0
code/components/citizen-scripting-lua/src/LuaScriptRuntime.cpp
@@ -754,12 +754,17 @@ int Lua_InvokeNative(lua_State* L)
754
}
755
756
// push the offset and set the type
757
+ retvals[numReturnValues] = 0;
758
+
759
push(&retvals[numReturnValues]);
760
rettypes[numReturnValues] = metaField;
761
762
// increment the counter
763
if (metaField == LuaMetaFields::PointerValueVector)
764
{
765
+ retvals[numReturnValues + 1] = 0;
766
+ retvals[numReturnValues + 2] = 0;
767
768
numReturnValues += 3;
769
770
else
0 commit comments