Skip to content

Commit bc81c45

Browse files
committed
Part 4 of "Rewrite crash handler"
1 parent 79331c3 commit bc81c45

File tree

12 files changed

+834
-479
lines changed

12 files changed

+834
-479
lines changed

Client/core/CCore.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -969,11 +969,7 @@ T* InitModule(CModuleLoader& m_Loader, const SString& strName, const SString& st
969969
}
970970

971971
// If we have a valid initializer, call it.
972-
T* pResult = nullptr;
973-
if (pfnInit != nullptr)
974-
{
975-
pResult = pfnInit(pObj);
976-
}
972+
T* pResult = pfnInit(pObj);
977973

978974
// Restore current directory
979975
SetCurrentDirectory(strSavedCwd);

0 commit comments

Comments
 (0)