From a846ed391eff8e710d89b59116bd3e6e98238c84 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 5 Dec 2018 08:29:39 +0100 Subject: [PATCH] - fixed: ST_FormatMapName did not clear the string it wrote to before appending text. --- src/g_statusbar/shared_sbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/g_statusbar/shared_sbar.cpp b/src/g_statusbar/shared_sbar.cpp index 7caef4a4b..766e18d6a 100644 --- a/src/g_statusbar/shared_sbar.cpp +++ b/src/g_statusbar/shared_sbar.cpp @@ -144,6 +144,7 @@ void ST_FormatMapName(FString &mapname, const char *mapnamecolor) cluster_info_t *cluster = FindClusterInfo (level.cluster); bool ishub = (cluster != NULL && (cluster->flags & CLUSTER_HUB)); + mapname = ""; if (am_showmaplabel == 1 || (am_showmaplabel == 2 && !ishub)) { mapname << level.MapName << ": ";