From 6a01798869b94d85650ca52ceb3102b9d22dc935 Mon Sep 17 00:00:00 2001 From: Aure7138 <100095051+Aure7138@users.noreply.github.com> Date: Wed, 22 Mar 2023 03:15:50 +0800 Subject: [PATCH] Fix focus lost crash (#1132) --- src/pointers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pointers.cpp b/src/pointers.cpp index b7044491..8efc155f 100644 --- a/src/pointers.cpp +++ b/src/pointers.cpp @@ -736,6 +736,11 @@ namespace big m_allow_weapons_in_vehicle = memory::byte_patch::make(ptr.add(5).as(), 0x01B0).get(); //In order for the second xref loop not to stop }); + // Crash Trigger + main_batch.add("CT", "48 3B F8 74 ? 8B 1D", [this](memory::handle ptr) { + memory::byte_patch::make(ptr.add(4).as(), 0x00)->apply(); + }); + // Write Vehicle Proximity Migration Data Node main_batch.add("WVPMDN", "48 89 4C 24 08 55 53 56 57 41 54 41 55 41 56 41 57 48 8B EC 48 83 EC 68 4C 8B A9", [this](memory::handle ptr) { m_write_vehicle_proximity_migration_data_node = ptr.as();