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