Decompile fn_20980 (CMapPropertyMgr::Create)

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

- fn_20980 CMapPropertyMgr::Create: logic confirmed by peer review

Peer-reviewed-by: Yommy, Tanke, 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 02:11:22 +00:00
commit b37cbc77ed

View file

@ -51,11 +51,12 @@ bool CMapPropertyMgr::Create() {
if (g_mapPropertyMgr == nullptr) {
g_mapPropertyMgr = new (std::nothrow) CMapPropertyMgr;
if (g_mapPropertyMgr != nullptr) {
if (g_mapPropertyMgr->m_valid) {
return true;
if (!g_mapPropertyMgr->m_valid) {
delete g_mapPropertyMgr;
g_mapPropertyMgr = nullptr;
return false;
}
delete g_mapPropertyMgr;
g_mapPropertyMgr = nullptr;
return true;
}
}
return false;