fix replace mt when sharetable update

This commit is contained in:
zixun
2019-08-15 18:59:11 +08:00
committed by 云风
parent 2e8659d5fc
commit 65eb351a3b

View File

@@ -275,7 +275,7 @@ local function resolve_replace(replace_map)
local nv = replace_map[mt]
if nv then
nv = getnv(mt)
setmetatable(t, nv)
setmetatable(v, nv)
else
match_value(mt)
end