fix variable declaration (#3849)

This commit is contained in:
Ludwig Nussel 2008-11-10 09:47:14 +00:00
parent 1828da63de
commit 7c19978aaa

View file

@ -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);