Decompile fn_18008 (CTownInfoMgr::Create)

Batch #12748 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_18008 CTownInfoMgr::Create: logic confirmed by peer review

Peer-reviewed-by: Yommy, gordaoprogramas, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-06 04:38:48 +00:00
commit 64c8ea6aaa

View file

@ -64,11 +64,12 @@ bool CTownInfoMgr::Create() {
if (g_townInfoMgr == nullptr) {
g_townInfoMgr = new (std::nothrow) CTownInfoMgr();
if (g_townInfoMgr != nullptr) {
if (g_townInfoMgr->m_isValid) {
return true;
if (!g_townInfoMgr->m_isValid) {
delete g_townInfoMgr;
g_townInfoMgr = nullptr;
return false;
}
delete g_townInfoMgr;
g_townInfoMgr = nullptr;
return true;
}
}
return false;