Fix a weird LUI/UI scripting related crash
This commit is contained in:
parent
ccf79ddd66
commit
2470553e1e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user