From: MirceaKitsune Date: Sun, 29 Jan 2012 22:00:25 +0000 (+0200) Subject: Properly strunzone strings X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9229a76c13ad1797d385141203d9ab5643f1314f;p=voretournament%2Fvoretournament.git Properly strunzone strings --- diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index a7283782..1a3b4c20 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -3584,12 +3584,11 @@ void Ent_ReadPortrait() pl_skin = ReadByte(); pl_name = ReadString(); - // updating an existent portrait - if(portrait_time) - { + // update existing portraits + if(portrait_name) strunzone(portrait_name); + if(portrait_image) strunzone(portrait_image); - } portrait_time = time; portrait_name = strzone(pl_name);