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 27341b94..cbd10555 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1382,7 +1382,7 @@ void Cmd_ToggleItem_f( gentity_t *ent )
if( ent->client->pers.teamSelection != PTE_HUMANS )
return;
- if( weapon == WP_NONE )
+ if( weapon != WP_NONE )
{
//special case to allow switching between
//the blaster and the primary weapon