Skip to content

Commit 3f9b650

Browse files
committed
Fix for moonsharp-devs#296 (prevent infinite loop)
1 parent 533e8b0 commit 3f9b650

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/MoonSharp.Interpreter/Interop/LuaStateInterop

src/MoonSharp.Interpreter/Interop/LuaStateInterop/LuaBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ protected static void LuaCall(LuaState L, lua_Integer nargs, lua_Integer nresult
316316
while (copied < nresults)
317317
{
318318
L.Push(DynValue.Nil);
319+
copied++;
319320
}
320321
}
321322
}

0 commit comments

Comments
 (0)