Decompile fn_03816 (CChangeMaterialMgr::CreateInstance)
Batch #12969 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_03816 CChangeMaterialMgr::CreateInstance: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
46edfec6e1
commit
41c10c878f
1 changed files with 7 additions and 5 deletions
|
|
@ -53,15 +53,17 @@ bool CChangeMaterialMgr::CreateInstance() {
|
|||
if (g_changeMaterialMgr != nullptr) {
|
||||
if (!g_changeMaterialMgr->m_isValid) {
|
||||
delete g_changeMaterialMgr;
|
||||
} else {
|
||||
if (g_changeMaterialMgr->Load()) {
|
||||
return true;
|
||||
}
|
||||
g_changeMaterialMgr = nullptr;
|
||||
return false;
|
||||
}
|
||||
if (!g_changeMaterialMgr->Load()) {
|
||||
if (g_changeMaterialMgr != nullptr) {
|
||||
delete g_changeMaterialMgr;
|
||||
}
|
||||
g_changeMaterialMgr = nullptr;
|
||||
return false;
|
||||
}
|
||||
g_changeMaterialMgr = nullptr;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue