Fix error not getting popped
This commit is contained in:
parent
3ae39ac3b3
commit
09cded3b38
|
@ -180,6 +180,7 @@ impl LuaState {
|
||||||
self.get_global(crate::lua_string!("ErrorNoHaltWithStack"));
|
self.get_global(crate::lua_string!("ErrorNoHaltWithStack"));
|
||||||
if self.is_nil(-1) {
|
if self.is_nil(-1) {
|
||||||
eprintln!("[ERROR] {:?}", self.get_string(-2));
|
eprintln!("[ERROR] {:?}", self.get_string(-2));
|
||||||
|
self.pop_n(2);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
self.push_value(-2);
|
self.push_value(-2);
|
||||||
|
|
Loading…
Reference in New Issue