Fix invalid pseudoindex

This commit is contained in:
William Venner 2022-01-04 21:56:34 +00:00
parent 2d8e53b0f9
commit eed57c7663
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ impl LuaState {
if has_metatable {
self.push_value(-2);
self.set_metatable(-2);
self.remove(-2);
self.remove(self.get_top() - 1);
}
ptr.write(data);