From 9229a76c13ad1797d385141203d9ab5643f1314f Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 30 Jan 2012 00:00:25 +0200 Subject: [PATCH] Properly strunzone strings --- data/qcsrc/client/hud.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); -- 2.39.2