Fix some potiental issues
This commit is contained in:
@ -280,7 +280,7 @@ class CObjective {
|
||||
public:
|
||||
int count;
|
||||
objinfo_t obj[12];
|
||||
inline void Clear() { count = 0; memset(obj,0,sizeof(objinfo_s)); }
|
||||
inline void Clear() { count = 0; memset(obj,0,sizeof(obj)); }
|
||||
void SetKeyValue( int index, char *keyname, char *value );
|
||||
|
||||
void InitObj(int dest = MSG_ALL , edict_t* ed = NULL);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user