Fix a weird LUI/UI scripting related crash
This commit is contained in:
parent
ccf79ddd66
commit
2470553e1e
@ -200,7 +200,12 @@ namespace ui_scripting
|
||||
{
|
||||
scheduler::loop([]()
|
||||
{
|
||||
ui_scripting::lua::engine::run_frame();
|
||||
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