invalid free fixed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@725 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-11-25 14:33:00 +00:00
parent acb6590343
commit 8272138c2c
4 changed files with 10 additions and 22 deletions
+2
View File
@@ -1,6 +1,7 @@
// client.cpp, mostly network related client game code
#include "cube.h"
#include "bot/bot.h"
ENetHost *clienthost = NULL;
int connecting = 0;
@@ -151,6 +152,7 @@ void disconnect(int onlyclean, int async)
clientnum = -1;
c2sinit = false;
player1->lifesequence = 0;
if(m_botmode) BotManager.EndMap();
loopv(players) zapplayer(players[i]);
localdisconnect();