diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-13 21:33:06 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-13 21:35:19 +0200 |
commit | 28bc8c0edb549cdbbe0832c4202630a039f738b1 (patch) | |
tree | 9989f31a5121f82af5aa264ebfe7096c5ea5030f /src/gui/setup_players.cpp | |
parent | 627e1bc7eee5b821d29b2161dec4991cae7bf9c0 (diff) | |
download | mana-client-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.gz mana-client-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.bz2 mana-client-28bc8c0edb549cdbbe0832c4202630a039f738b1.tar.xz mana-client-28bc8c0edb549cdbbe0832c4202630a039f738b1.zip |
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.
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r-- | src/gui/setup_players.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<gcn::DropDown *>( getElementAt(row, RELATION_CHOICE_COLUMN)); player_relations.setRelation(getPlayerAt(row), - static_cast<PlayerRelation::relation>( + static_cast<PlayerRelation::Relation>( choicebox->getSelected())); } |