From 8e6fcac92e47bfd3407c0c2bb7ff5bc6e7686149 Mon Sep 17 00:00:00 2001 From: expwnent Date: Sun, 7 Dec 2014 07:56:33 -0500 Subject: [PATCH] persist-table bug. --- library/lua/persist-table.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/lua/persist-table.lua b/library/lua/persist-table.lua index f4a4b9e3c..6ac3b09e5 100644 --- a/library/lua/persist-table.lua +++ b/library/lua/persist-table.lua @@ -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