add assert

This commit is contained in:
Glenn Maynard
2004-04-05 22:33:49 +00:00
parent 4139cc5081
commit 99a3eeb659
+1
View File
@@ -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 )