Skip to content

Commit

Permalink
fix: table.remove function does not work with random indexes (opentib…
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 authored and elsongabriel committed Nov 13, 2023
1 parent def2251 commit a763dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/libs/functions/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function Game.setStorageValue(key, value)

if value == -1 then
if globalStorageTable[key] then
table.remove(globalStorageTable, key)
globalStorageTable[key] = nil
end
return
end
Expand Down

0 comments on commit a763dd0

Please sign in to comment.