Browse Source

Fix: LuaTable.TryGetValue

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

+ 1 - 1
src/Lua/LuaTable.cs

@@ -111,7 +111,7 @@ public sealed class LuaTable
             if (index > 0 && index <= array.Length)
             {
                 value = array[index - 1];
-                return true;
+                return value.Type is not LuaValueType.Nil;
             }
         }