diff --git a/src/backend/script_patches.hpp b/src/backend/script_patches.hpp index bd6baaa7..cb3dea17 100644 --- a/src/backend/script_patches.hpp +++ b/src/backend/script_patches.hpp @@ -23,7 +23,7 @@ namespace big g_script_patcher_service->add_patch( {RAGE_JOAAT("freemode"), "2C ? ? ? 55 ? ? 71 2C ? ? ? 61", 7, std::vector(16, 0x0), &g.spoofing.spoof_blip}); // prevent normal blip update 2 g_script_patcher_service->add_patch({RAGE_JOAAT("shop_controller"), "2D 01 04 00 00 2C ? ? ? 56 ? ? 71", 5, {0x71, 0x2E, 0x01, 0x01}, nullptr}); // despawn bypass - g_script_patcher_service->add_patch({RAGE_JOAAT("shop_controller"), "38 00 5D ? ? ? 38 00 5D ? ? ? 38 00 41", 0, std::vector(12, 0x0), nullptr}); // godmode/invisibility detection bypass + g_script_patcher_service->add_patch({RAGE_JOAAT("shop_controller"), "2D 01 03 00 00 5D ? ? ? 06 56 ? ? 2E ? ? 2C", 5, {0x2E, 0x01, 0x00}, nullptr}); // godmode/invisibility detection bypass g_script_patcher_service->add_patch({RAGE_JOAAT("am_mp_nightclub"), "2D 01 03 00 00 2C ? ? ? 56 ? ? 72 2E ? ? 38 00", 5, diff --git a/src/hooks/misc/queue_dependency.cpp b/src/hooks/misc/queue_dependency.cpp index 0f4e0710..34b899e1 100644 --- a/src/hooks/misc/queue_dependency.cpp +++ b/src/hooks/misc/queue_dependency.cpp @@ -39,9 +39,8 @@ namespace big { auto f1 = *(__int64*)(cb + 0x60); auto f2 = *(__int64*)(cb + 0x100); - auto f3 = *(__int64*)(cb + 0x1A0); - if (!is_address_in_game_region(f1) || !is_address_in_game_region(f2) || !is_address_in_game_region(f3)) + if (!is_address_in_game_region(f1) || (f2 && !is_address_in_game_region(f2))) return false; // These must run, otherwise we'll at some point run out of sysMemSimpleAllocator memory. @@ -50,7 +49,7 @@ namespace big return false; } - return is_jump(f1) || is_jump(f2) || is_jump(f3); + return is_jump(f1) || is_jump(f2); } void hooks::queue_dependency(void* dependency)