Skip to content

Commit 47e0492

Browse files
committed
Part 4 of "Rewrite crash handler"
1 parent da3fabd commit 47e0492

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
@@ -993,11 +993,7 @@ T* InitModule(CModuleLoader& m_Loader, const SString& strName, const SString& st
993993
}
994994

995995
// If we have a valid initializer, call it.
996-
T* pResult = nullptr;
997-
if (pfnInit != nullptr)
998-
{
999-
pResult = pfnInit(pObj);
1000-
}
996+
T* pResult = pfnInit(pObj);
1001997

1002998
// Restore current directory
1003999
SetCurrentDirectory(strSavedCwd);

0 commit comments

Comments
 (0)