Skip to content

Commit

Permalink
Merge pull request Tencent#69 from HoHooHo/patch1
Browse files Browse the repository at this point in the history
Fix bug: [ rawget(super, k) ] cannot return correct value when the type is bool
  • Loading branch information
rowechien authored Nov 19, 2019
2 parents 4dc19f9 + abdd05a commit 482d3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/UnLua/Content/UnLua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function _G.Index(t, k)
local super = mt
while super do
local v = rawget(super, k)
if v then
if v ~= nil then
rawset(t, k, v)
return v
end
Expand Down

0 comments on commit 482d3d1

Please sign in to comment.