From: terencehill <piuntn@gmail.com>
Date: Tue, 2 Dec 2014 11:52:45 +0000 (+0100)
Subject: score labels must be strunzoned as the server sends them twice on purpose (who knows... 
X-Git-Tag: xonotic-v0.8.0~130^2~1
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e2e79fbaeb7281204772db4c1b2e2edf56a2c41e;p=xonotic%2Fxonotic-data.pk3dir.git

score labels must be strunzoned as the server sends them twice on purpose (who knows why)
---

diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc
index c0e37ae621..4110d6d161 100644
--- a/qcsrc/client/Main.qc
+++ b/qcsrc/client/Main.qc
@@ -942,11 +942,15 @@ void Ent_ScoresInfo()
 	HUD_ModIcons_SetFunc();
 	for(i = 0; i < MAX_SCORE; ++i)
 	{
+		if(scores_label[i])
+			strunzone(scores_label[i]);
 		scores_label[i] = strzone(ReadString());
 		scores_flags[i] = ReadByte();
 	}
 	for(i = 0; i < MAX_TEAMSCORE; ++i)
 	{
+		if(teamscores_label[i])
+			strunzone(teamscores_label[i]);
 		teamscores_label[i] = strzone(ReadString());
 		teamscores_flags[i] = ReadByte();
 	}