From 408f36a92a2ab56356b47bca387b9635a805d28c Mon Sep 17 00:00:00 2001 From: Aaron Dean <8dino2@gmail.com> Date: Wed, 6 Sep 2023 17:02:29 -0400 Subject: [PATCH] Not quite C++ compat --- actionlite/p_weapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionlite/p_weapon.cpp b/actionlite/p_weapon.cpp index 02e4ee0..f4e4195 100644 --- a/actionlite/p_weapon.cpp +++ b/actionlite/p_weapon.cpp @@ -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)