From 63875d1572d4be015a34659b261cbc006b284e08 Mon Sep 17 00:00:00 2001 From: driAn Date: Mon, 3 Nov 2008 18:24:42 +0000 Subject: [PATCH] fixed disconnecting issue during votes/mapstarts git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3392 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 3113534d..9e5a4147 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -563,8 +563,8 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) case SV_WEAPCHANGE: { - if(!d) return; - d->selectweapon(getint(p)); + int gun = getint(p); + if(d) d->selectweapon(gun); break; }