]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix warning (same as last, headshotbox this time)
authorJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 13:57:26 +0000 (15:57 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 13:57:26 +0000 (15:57 +0200)
qcsrc/server/cl_client.qc

index f5357b65727db3bcec6b323d8100925a1090a949..68a7831d673e25587a6e723465756792dd41a83a 100644 (file)
@@ -3176,7 +3176,8 @@ void PlayerPostThink (void)
        else
        {
                if(self.showheadshotbbox)
-                       remove(self.showheadshotbbox);
+                       if(self.showheadshotbbox && !wasfreed(self.showheadshotbbox))
+                remove(self.showheadshotbbox);
        }
 
        playerdemo_write();