Skip to content

Commit

Permalink
persist-table bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
expwnent committed Dec 7, 2014
1 parent 10fa555 commit 8e6fcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/lua/persist-table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ GlobalTable.mt.__newindex = GlobalTable.mt.__newindex or function(theTable, key,
local old = entry.value
local isNew = entry.ints[existIndex] == defaultValue
if entry.ints[existIndex] == existValue and entry.ints[pointerIndex] == pointerValue then
if type(value) == 'table' and rawget(value,'mt') == rawget(GlobalTable,mt) and entry.value == rawget(value,'key') then
if type(value) == 'table' and rawget(value,'mt') == rawget(GlobalTable,'mt') and entry.value == rawget(value,'key') then
--if setting it to the same table it already is, then don't do anything
return
end
Expand Down

0 comments on commit 8e6fcac

Please sign in to comment.