From 79cab2a1ad09e96d9e105a236c813d01ef55f1ef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 16 Nov 2002 07:35:13 +0000 Subject: [PATCH] fix "warning: cannot pass objects of non-POD type `class CStdStringA' through `..." --- stepmania/src/StepMania.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 32b5ba0bac..54173ea857 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -380,10 +380,10 @@ int main(int argc, char* argv[]) // immediately try to connect to server GAMESTATE->m_pCurSong = SONGMAN->GetSongFromPath( g_sSongPath ); if( GAMESTATE->m_pCurSong == NULL ) - throw RageException( "The song '%s' is required to play this network game.", g_sSongPath ); + throw RageException( "The song '%s' is required to play this network game.", g_sSongPath.GetString() ); NETWORK->Init( false ); if( !NETWORK->Connect( (const char*)g_sServerIP, SM_PORT ) ) - throw RageException( "Could not connect to server '%s'", g_sServerIP ); + throw RageException( "Could not connect to server '%s'", g_sServerIP.GetString() ); SCREENMAN->SetNewScreen( "ScreenSandbox" ); } else if( g_bBeServer ) @@ -391,10 +391,10 @@ int main(int argc, char* argv[]) // wait for clients to connect GAMESTATE->m_pCurSong = SONGMAN->GetSongFromPath( g_sSongPath ); if( GAMESTATE->m_pCurSong == NULL ) - throw RageException( "The song '%s' is required to play this network game.", g_sSongPath ); + throw RageException( "The song '%s' is required to play this network game.", g_sSongPath.GetString() ); NETWORK->Init( true ); if( !NETWORK->Listen( SM_PORT ) ) - throw RageException( "Could not connect to server '%s'", g_sServerIP ); + throw RageException( "Could not connect to server '%s'", g_sServerIP.GetString() ); SCREENMAN->SetNewScreen( "ScreenSandbox" ); } else