From 99a3eeb659e08cc821522ab8d32185afc8ef64ae Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 5 Apr 2004 22:33:49 +0000 Subject: [PATCH] add assert --- stepmania/src/SDL_utils.cpp | 1 + 1 file changed, 1 insertion(+) 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 )