From 2ee1c0ee66f7f4e670547de68873fdf851ea72a8 Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Sun, 1 Mar 2026 19:11:15 +0100 Subject: [PATCH] Fix an issue where the AOB scan could crash the game. log removal. --- libs/Memory/Memory.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/Memory/Memory.cpp b/libs/Memory/Memory.cpp index 948bdd3..4c39db1 100644 --- a/libs/Memory/Memory.cpp +++ b/libs/Memory/Memory.cpp @@ -224,8 +224,6 @@ uint8_t* Memory::AOBScanInternal(uint8_t* base, const char* label, size_t size, if (pattern_bytes.empty()) return nullptr; - if (logger) logger->info("Scanning JIT method region: 0x{:X} - 0x{:X}", reinterpret_cast(base), reinterpret_cast(base + size)); - MEMORY_BASIC_INFORMATION mbi{}; for (uint8_t* current = base; current < base + size;) { @@ -262,7 +260,8 @@ uint8_t* Memory::AOBScanInternal(uint8_t* base, const char* label, size_t size, } if (match) { - LOG_SIGNATURE_FOUND(label, reinterpret_cast(scanStart + i)); + if (logger) + LOG_SIGNATURE_FOUND(label, reinterpret_cast(scanStart + i)); return scanStart + i; } }