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:
parent
b17c136a61
commit
b37cbc77ed
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue