Skip to content

Commit 87adf44

Browse files
committed
Remove not needed "if" in Hook_ExplosionCreation
1 parent 700b229 commit 87adf44

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Client/mods/deathmatch/logic/CClientExplosionManager.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ bool CClientExplosionManager::Hook_ExplosionCreation(CEntity* pGameExplodingEnti
4949
if (!pResponsibleGameEntity)
5050
return false;
5151

52-
CClientEntity* pResponsible = nullptr;
53-
54-
if (pResponsibleGameEntity)
55-
pResponsible = pPools->GetClientEntity(reinterpret_cast<DWORD*>(pResponsibleGameEntity->GetInterface()));
52+
CClientEntity* const pResponsible = pPools->GetClientEntity(reinterpret_cast<DWORD*>(pResponsibleGameEntity->GetInterface()));;
5653

5754
if (!pResponsible)
5855
return false;

0 commit comments

Comments
 (0)