From f0ae3753f97dcc989be34bf2826d5921e5f511dd Mon Sep 17 00:00:00 2001 From: RyujinZX Date: Wed, 27 Jul 2022 14:14:09 +0300 Subject: [PATCH] Fix Exception in Console, when loading ptr null --- cheat-library/src/user/cheat/imap/InteractiveMap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp index 5cf9b3c..e338c8f 100644 --- a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp +++ b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp @@ -1358,6 +1358,12 @@ namespace cheat::feature if (_monoMiniMap == nullptr) return false; + // Fix Exception in Console, when loading ptr null | RyujinZX#7832 + if (_monoMiniMap->fields._._._._.m_CachedPtr == 0) { + _monoMiniMap = nullptr; + return false; + } + SAFE_BEGIN(); return app::Behaviour_get_isActiveAndEnabled(reinterpret_cast(_monoMiniMap), nullptr); SAFE_ERROR();