]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
stop removing the world, I still need it
authorRudolf Polzer <divverent@alientrap.org>
Sun, 1 Jan 2012 15:33:25 +0000 (16:33 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 1 Jan 2012 15:33:25 +0000 (16:33 +0100)
qcsrc/server/bot/bot.qc

index 7bb507579a529f618e8a8c3ea45c38c17eba1291..1658d7fac4f3c6de0c1313c7780258492b273914 100644 (file)
@@ -375,7 +375,8 @@ void bot_clientdisconnect()
        self.netname_freeme = string_null;
        self.playermodel_freeme = string_null;
        self.playerskin_freeme = string_null;
-       remove(self.bot_cmd_current);
+       if(self.bot_cmd_current)
+               remove(self.bot_cmd_current);
        if(bot_waypoint_queue_owner==self)
                bot_waypoint_queue_owner = world;
 }