diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index dbae2ea852..f2515dc3b9 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -631,6 +631,7 @@ SDL_Surface *mySDL_LoadSurface( CString file ) SDL_Surface *img = SDL_CreateRGBSurface( SDL_SWSURFACE, h.width, h.height, h.bpp, h.Rmask, h.Gmask, h.Bmask, h.Amask); + ASSERT( img ); ASSERT( h.pitch == img->pitch ); if( f.Read( img->pixels, h.height * h.pitch ) != h.height * h.pitch )