fix: fix CAN_REGISTER_MISSION_DOORS crash (#220)
Nightly Build / Check Recent Commit (push) Successful in 20s
Nightly Build / Build Nightly (push) Waiting to run
Nightly Build / Recreate Release (push) Blocked by required conditions

This commit is contained in:
Arthur
2026-04-23 21:38:07 +03:00
committed by GitHub
parent 953fa7d37e
commit 02a079e92a
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ namespace big
memory::byte_patch::make(g_pointers->m_gta.m_script_vm_patch_6.add(6).as<uint16_t*>(), 0x9090)->apply();
// Patch script network check
memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked
//memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked
// Increase Start Get Presence Attributes limit from 32 to 100
memory::byte_patch::make(g_pointers->m_sc.m_num_handles_patch, std::vector{0x64})->apply();
+5 -1
View File
@@ -24,7 +24,11 @@ namespace big
void script_mgr::tick()
{
gta_util::execute_as_script("main_persistent"_J, std::mem_fn(&script_mgr::tick_internal), this);
auto thread = gta_util::find_script_thread("freemode"_J);
if (!thread)
thread = gta_util::find_script_thread("main_persistent"_J);
if (thread)
gta_util::execute_as_script(thread, std::mem_fn(&script_mgr::tick_internal), this);
}
void script_mgr::ensure_main_fiber()