Not quite C++ compat

This commit is contained in:
Aaron Dean 2023-09-06 17:02:29 -04:00
parent ec05aa5368
commit 408f36a92a

View file

@ -980,7 +980,7 @@ void Weapon_Repeating(edict_t *ent, int FRAME_ACTIVATE_LAST, int FRAME_FIRE_LAST
void DropSpecialWeapon(edict_t* ent)
{
int itemNum = ent->client->pers.weapon->id ? : 0;
int itemNum = ent->client->pers.weapon->id;
// first check if their current weapon is a special weapon, if so, drop it.
if (itemNum >= MP5_NUM && itemNum <= SNIPER_NUM)