From f2fa88114bdbd5407857c78f06f0bf2836da30f5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:22:42 +0000 Subject: [PATCH] Decompile fn_06486 (CMapInfoMgr::Create) Batch #12741 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_06486 CMapInfoMgr::Create: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/MapInfoMgr.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Contents/MapInfoMgr.cpp b/Source/Contents/MapInfoMgr.cpp index 0ec97c3e..488d670b 100644 --- a/Source/Contents/MapInfoMgr.cpp +++ b/Source/Contents/MapInfoMgr.cpp @@ -93,12 +93,13 @@ bool CMapInfoMgr::Create() { if (g_mapInfoMgr == nullptr) { g_mapInfoMgr = new (std::nothrow) CMapInfoMgr(); if (g_mapInfoMgr != nullptr) { - if (g_mapInfoMgr->m_initialized) { - return true; + if (!g_mapInfoMgr->m_initialized) { + delete g_mapInfoMgr; + g_mapInfoMgr = nullptr; + return false; } - delete g_mapInfoMgr; - g_mapInfoMgr = nullptr; + return true; } }