From 47f2df878ea9cb4835faec7dfcf993713db45e10 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Mon, 12 Dec 2016 07:10:46 +1100 Subject: [PATCH] Fixup e11c9eccb308 --- src/gui/dialogs/multiplayer/faction_select.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/dialogs/multiplayer/faction_select.cpp b/src/gui/dialogs/multiplayer/faction_select.cpp index 32df02911ab1..6f35e3d90f6a 100644 --- a/src/gui/dialogs/multiplayer/faction_select.cpp +++ b/src/gui/dialogs/multiplayer/faction_select.cpp @@ -101,7 +101,9 @@ void faction_select::pre_show(window& window) string_map item; // flag_rgb here is unrelated to any handling in the unit class - item["label"] = (formatter() << side["image"] << "~RC(" << side["flag_rgb"] << ">" << tc_color_ << ")").str(); + const std::string flag_rgb = !side["flag_rgb"].empty() ? side["flag_rgb"].str() : "magenta"; + + item["label"] = (formatter() << side["image"] << "~RC(" << flag_rgb << ">" << tc_color_ << ")").str(); data.emplace("faction_image", item); item["label"] = side["name"];