Skip to content

Commit

Permalink
Fixup e11c9ec
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 11, 2016
1 parent e11c9ec commit 47f2df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/dialogs/multiplayer/faction_select.cpp
Expand Up @@ -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"];
Expand Down

0 comments on commit 47f2df8

Please sign in to comment.