fix lua stack leak

This commit is contained in:
MihailRis
2024-06-29 22:39:41 +03:00
parent 982c8b132d
commit e08bfd071b
3 changed files with 13 additions and 1 deletions
+1
View File
@@ -318,6 +318,7 @@ void scripting::on_entities_update() {
auto L = lua::get_main_thread();
lua::get_from(L, STDCOMP, "update", true);
lua::call_nothrow(L, 0, 0);
lua::pop(L);
}
void scripting::on_ui_open(