diff --git a/src/MoonSharp.Interpreter/Interop/LuaStateInterop/LuaBase.cs b/src/MoonSharp.Interpreter/Interop/LuaStateInterop/LuaBase.cs index e62ff92b..78419ebb 100644 --- a/src/MoonSharp.Interpreter/Interop/LuaStateInterop/LuaBase.cs +++ b/src/MoonSharp.Interpreter/Interop/LuaStateInterop/LuaBase.cs @@ -316,6 +316,7 @@ protected static void LuaCall(LuaState L, lua_Integer nargs, lua_Integer nresult while (copied < nresults) { L.Push(DynValue.Nil); + copied++; } } }