Skip to content

Commit fefde4c

Browse files
committed
Merge pull request moonsharp-devs#326 from Joy-less/prevent-infinite-loop
2 parents 943e3e7 + 3f9b650 commit fefde4c

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)