Browse Source

Fix: LuaTable.TryGetNext

AnnulusGames 1 year ago
parent
commit
a2b1835940
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/LuaTable.cs

+ 1 - 1
src/Lua/LuaTable.cs

@@ -194,7 +194,7 @@ public sealed class LuaTable
             var foundKey = false;
             foreach (var kv in dictionary)
             {
-                if (foundKey)
+                if (foundKey && kv.Value.Type is not LuaValueType.Nil)
                 {
                     pair = kv;
                     return true;