Fix diff xmit of metatables
This commit is contained in:
@@ -290,7 +290,11 @@ static void patch_table(LuaStack &LS0, LuaSlot tangibles, LuaSlot ntmap, LuaSlot
|
||||
for (int i = 0; i < ndiffs; i++) {
|
||||
set_transmitted_value(LS, tangibles, ntmap, key, sb);
|
||||
set_transmitted_value(LS, tangibles, ntmap, val, sb);
|
||||
LS.rawset(tab, key, val);
|
||||
if (LS.isnil(key)) {
|
||||
LS.setmetatable(tab, val);
|
||||
} else {
|
||||
LS.rawset(tab, key, val);
|
||||
}
|
||||
}
|
||||
LS.result();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user