diff --git a/stepmania/src/RageSurface_Load.cpp b/stepmania/src/RageSurface_Load.cpp index e433427d51..9645612675 100644 --- a/stepmania/src/RageSurface_Load.cpp +++ b/stepmania/src/RageSurface_Load.cpp @@ -31,7 +31,8 @@ SDL_Surface *RageSurface::LoadFile( const CString &sPath ) SDL_RWclose( rw ); SDL_FreeRW( rw ); - mySDL_FixupPalettedAlpha( ret ); + if( ret ) + mySDL_FixupPalettedAlpha( ret ); } else {