Fix some potiental issues

This commit is contained in:
Arkshine
2015-07-31 15:46:16 +02:00
parent 8c0534a055
commit 5987f389c6
4 changed files with 16 additions and 13 deletions
+4 -1
View File
@@ -152,10 +152,13 @@ void Client_Health_End(void* mValue)
if ( !isModuleActive() )
return;
if (!mPlayer)
return;
edict_t *enemy = mPlayer->pEdict->v.dmg_inflictor;
int damage = (int)mPlayer->pEdict->v.dmg_take;
if ( !mPlayer || !damage || !enemy )
if (!damage || !enemy)
return;
int weapon = 0;