fix crash on failed BMP load

This commit is contained in:
Glenn Maynard
2004-05-18 18:59:33 +00:00
parent b815ef272d
commit 476774ff63
+2 -1
View File
@@ -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
{