]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/View.qc
strzone a tempstring before storing in a global! create a new cvar for scaling up...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index ea257312ac85206139a4a19849e4d28111daf20e..215aa524eb52fbf3d1fbb3b464e1abe84e4fdc68 100644 (file)
@@ -1265,7 +1265,9 @@ void CSQC_common_hud(void)
                        if(cvar_string("hud_panel_weapons_accuracy_color_levels") != acc_color_levels)
                        if(!(gametype == GAME_RACE || gametype == GAME_CTS))
                        {
-                               acc_color_levels = cvar_string("hud_panel_weapons_accuracy_color_levels");
+                               if(acc_color_levels)
+                                       strunzone(acc_color_levels);
+                               acc_color_levels = strzone(cvar_string("hud_panel_weapons_accuracy_color_levels"));
                                acc_levels = tokenize(acc_color_levels);
                                if (acc_levels > MAX_ACCURACY_LEVELS)
                                        acc_levels = MAX_ACCURACY_LEVELS;