Replace StringToInt with the std version.
Again, RageUtil isn't the right home.
This commit is contained in:
+1
-1
@@ -233,7 +233,7 @@ void GameState::ApplyCmdline()
|
||||
RString sPlayer;
|
||||
for( int i = 0; GetCommandlineArgument( "player", &sPlayer, i ); ++i )
|
||||
{
|
||||
int pn = StringToInt( sPlayer )-1;
|
||||
int pn = std::stoi( sPlayer )-1;
|
||||
if( !IsAnInt( sPlayer ) || pn < 0 || pn >= NUM_PLAYERS )
|
||||
RageException::Throw( "Invalid argument \"--player=%s\".", sPlayer.c_str() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user