aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-11-10 09:47:14 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-11-10 09:47:14 +0000
commitb1613ef65246cc89a1e40e35c6e07080c56ea00b (patch)
tree495054122bc9cfca09dab11754f534694fbc12a8
parent82b32ef30ccf0e2ddc52460461aa97dd991f6dc5 (diff)
downloadioquake3-aero-b1613ef65246cc89a1e40e35c6e07080c56ea00b.tar.gz
ioquake3-aero-b1613ef65246cc89a1e40e35c6e07080c56ea00b.zip
fix variable declaration (#3849)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1486 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/client/cl_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/client/cl_input.c b/code/client/cl_input.c
index f1a0376..72056a2 100644
--- a/code/client/cl_input.c
+++ b/code/client/cl_input.c
@@ -781,8 +781,8 @@ void CL_WritePacket( void ) {
} else if (Q_stricmp(target, "none") == 0) {
clc.voipTarget1 = clc.voipTarget2 = clc.voipTarget3 = 0;
} else {
- clc.voipTarget1 = clc.voipTarget2 = clc.voipTarget3 = 0;
const char *ptr = target;
+ clc.voipTarget1 = clc.voipTarget2 = clc.voipTarget3 = 0;
do {
if ((*ptr == ',') || (*ptr == '\0')) {
const int val = atoi(target);