]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix warning (remove called w/o check if there was anythign to remove)
authorJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 13:54:20 +0000 (15:54 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 13:54:20 +0000 (15:54 +0200)
qcsrc/server/cl_client.qc

index 9a1d4100473f0967dae2bea37e158ed5103805a2..f5357b65727db3bcec6b323d8100925a1090a949 100644 (file)
@@ -1277,7 +1277,9 @@ void ClientKill_Now()
            }
        }
        
-       remove(self.killindicator);
+       if(self.killindicator && !wasfreed(self.killindicator))
+        remove(self.killindicator);
+       
        self.killindicator = world;
 
        if(self.killindicator_teamchange)