summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 26367e83..20a58e84 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1329,7 +1329,7 @@ void Cmd_ActivateItem_f( gentity_t *ent )
if( upgrade != UP_NONE && BG_gotItem( upgrade, ent->client->ps.stats ) )
BG_activateItem( upgrade, ent->client->ps.stats );
- else if( weapon != WP_NONE )
+ else if( weapon != WP_NONE && BG_gotWeapon( weapon, ent->client->ps.stats ) )
{
//force a weapon change
ent->client->ps.pm_flags |= PMF_WEAPON_SWITCH;