From: Jakob MG Date: Tue, 28 Jun 2011 13:57:26 +0000 (+0200) Subject: Fix warning (same as last, headshotbox this time) X-Git-Tag: xonotic-v0.5.0~159^2~15^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae9f6e58ec2369a309b5ca5ffd6fbb54f4e7b621;p=xonotic%2Fxonotic-data.pk3dir.git Fix warning (same as last, headshotbox this time) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index f5357b657..68a7831d6 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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();