Fix a weird LUI/UI scripting related crash

This commit is contained in:
Federico Cecchetto 2022-02-02 21:31:22 +01:00
parent ccf79ddd66
commit 2470553e1e

View File

@ -199,8 +199,13 @@ namespace ui_scripting
void post_unpack() override
{
scheduler::loop([]()
{
const auto self_id = GetCurrentThreadId();
if (self_id == game::threadIds[game::THREAD_CONTEXT_MAIN])
{
ui_scripting::lua::engine::run_frame();
}
fps::draw();
branding::draw();
game_console::draw_console();