From bc29666749288ab3e6d3c7169b1f703492a78a46 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 16 May 2010 16:55:15 +0000 Subject: [PATCH] Fixed invalid spinner max value in kart screen git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5449 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/kart_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/states_screens/kart_selection.cpp b/src/states_screens/kart_selection.cpp index a7dabc6d5..a15e1e57c 100644 --- a/src/states_screens/kart_selection.cpp +++ b/src/states_screens/kart_selection.cpp @@ -266,7 +266,7 @@ public: const int playerAmount = UserConfigParams::m_all_players.size(); m_player_ident_spinner->m_properties[PROP_MIN_VALUE] = "0"; - m_player_ident_spinner->m_properties[PROP_MAX_VALUE] = (playerAmount-1); + m_player_ident_spinner->m_properties[PROP_MAX_VALUE] = StringUtils::toString(playerAmount-1); m_player_ident_spinner->m_properties[PROP_ID] = spinnerID; m_player_ident_spinner->m_properties[PROP_WARP_AROUND] = "true";