]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Properly strunzone strings
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 22:00:25 +0000 (00:00 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 22:00:25 +0000 (00:00 +0200)
data/qcsrc/client/hud.qc

index a7283782612620abea5ea5812b3391109d2f1b9c..1a3b4c20ed0d061c8e38137ec27b4af2881407af 100644 (file)
@@ -3584,12 +3584,11 @@ void Ent_ReadPortrait()
        pl_skin = ReadByte();\r
        pl_name = ReadString();\r
 \r
-       // updating an existent portrait\r
-       if(portrait_time)\r
-       {\r
+       // update existing portraits\r
+       if(portrait_name)\r
                strunzone(portrait_name);\r
+       if(portrait_image)\r
                strunzone(portrait_image);\r
-       }\r
 \r
        portrait_time = time;\r
        portrait_name = strzone(pl_name);\r