From 28bc8c0edb549cdbbe0832c4202630a039f738b1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 13 Apr 2009 21:33:06 +0200 Subject: Some cleanup of the Configuration interface Mainly avoid all the convertions from integer to float and then to string and also back from string to float and then to integer. --- src/gui/setup_players.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/setup_players.cpp') diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp index 8925016b..9a3d6967 100644 --- a/src/gui/setup_players.cpp +++ b/src/gui/setup_players.cpp @@ -157,7 +157,7 @@ public: gcn::DropDown *choicebox = dynamic_cast( getElementAt(row, RELATION_CHOICE_COLUMN)); player_relations.setRelation(getPlayerAt(row), - static_cast( + static_cast( choicebox->getSelected())); } -- cgit v1.2.3-70-g09d2