persist-table bug.

develop
expwnent 2014-12-07 07:56:33 -05:00
parent 10fa55570e
commit 8e6fcac92e
1 changed files with 1 additions and 1 deletions

@ -165,7 +165,7 @@ GlobalTable.mt.__newindex = GlobalTable.mt.__newindex or function(theTable, key,
local old = entry.value local old = entry.value
local isNew = entry.ints[existIndex] == defaultValue local isNew = entry.ints[existIndex] == defaultValue
if entry.ints[existIndex] == existValue and entry.ints[pointerIndex] == pointerValue then 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 --if setting it to the same table it already is, then don't do anything
return return
end end