From c79e0dfc256938dc062c00f2c4475852d834b750 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 1 Sep 2013 20:58:51 -0500 Subject: [PATCH] Fix targetNum check in cgame's tcmd --- code/cgame/cg_consolecmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cgame/cg_consolecmds.c b/code/cgame/cg_consolecmds.c index 0c2842d0..991ab574 100644 --- a/code/cgame/cg_consolecmds.c +++ b/code/cgame/cg_consolecmds.c @@ -36,7 +36,7 @@ void CG_TargetCommand_f( void ) { char test[4]; targetNum = CG_CrosshairPlayer(); - if (!targetNum ) { + if ( targetNum == -1 ) { return; }