mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Merge pull request #136 from thegrb93/saveerrorfix
Fix trying to serialize unserializable keys
This commit is contained in:
commit
d06b7e1f7f
@ -119,7 +119,7 @@ if(not system.IsWindows() or not hasModule)then
|
||||
else
|
||||
buff:WriteByte(255)
|
||||
for k,v in pairs(obj) do
|
||||
if(enc[TypeID(v)]!=noserializer)then
|
||||
if(enc[TypeID(k)]!=noserializer and enc[TypeID(v)]!=noserializer)then
|
||||
write(k)
|
||||
write(v)
|
||||
end
|
||||
@ -179,7 +179,7 @@ else
|
||||
else
|
||||
AdvDupe2_WriteByte(255)
|
||||
for k,v in pairs(obj) do
|
||||
if(enc[TypeID(v)]!=noserializer)then
|
||||
if(enc[TypeID(k)]!=noserializer and enc[TypeID(v)]!=noserializer)then
|
||||
write(k)
|
||||
write(v)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user