Skip to content

Commit

Permalink
fixed #181
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jul 9, 2019
1 parent 86e61d4 commit 1d6fe90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Development/Component/compiler/script/w3x2lni/slk_lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,12 @@ local function eq_obj(a, b)
goto CONTINUE
end
if type(v) ~= type(b[k]) then
if v == nil then
return b[k] == 0 or b[k] == ''
end
if b[k] == nil then
return v == 0 or v == ''
end
return false
end
if type(v) == 'table' then
Expand Down

1 comment on commit 1d6fe90

@yefq
Copy link
Contributor

@yefq yefq commented on 1d6fe90 Jul 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

完美解决!

Please sign in to comment.