From 09cded3b38dacdb25f98c1d8ba9853710b77412d Mon Sep 17 00:00:00 2001 From: William Venner Date: Tue, 4 Jan 2022 21:56:09 +0000 Subject: [PATCH] Fix error not getting popped --- gmod/src/lua/lua_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gmod/src/lua/lua_state.rs b/gmod/src/lua/lua_state.rs index 9a43b9c..55a05e4 100644 --- a/gmod/src/lua/lua_state.rs +++ b/gmod/src/lua/lua_state.rs @@ -180,6 +180,7 @@ impl LuaState { self.get_global(crate::lua_string!("ErrorNoHaltWithStack")); if self.is_nil(-1) { eprintln!("[ERROR] {:?}", self.get_string(-2)); + self.pop_n(2); return false; } self.push_value(-2);