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
|
void post_unpack() override
|
||||||
{
|
{
|
||||||
scheduler::loop([]()
|
scheduler::loop([]()
|
||||||
|
{
|
||||||
|
const auto self_id = GetCurrentThreadId();
|
||||||
|
if (self_id == game::threadIds[game::THREAD_CONTEXT_MAIN])
|
||||||
{
|
{
|
||||||
ui_scripting::lua::engine::run_frame();
|
ui_scripting::lua::engine::run_frame();
|
||||||
|
}
|
||||||
|
|
||||||
fps::draw();
|
fps::draw();
|
||||||
branding::draw();
|
branding::draw();
|
||||||
game_console::draw_console();
|
game_console::draw_console();
|
||||||
|
Loading…
Reference in New Issue
Block a user