diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index a41ef276e3..52888fb0ed 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -136,7 +136,7 @@ SDL_Surface *RageBitmapTexture::CreateImg(int &pixfmt) /* XXX: Wait, we don't want to throw for all images; in particular, we * want to tolerate corrupt/unknown background images. */ if(img == NULL) - RageException::Throw( "Couldn't load %s: %s", GetFilePath(), SDL_GetError() ); + RageException::Throw( "Couldn't load %s: %s", GetFilePath().GetString(), SDL_GetError() ); GLenum fmtTexture; /* Figure out which texture format to use. */