From b815ef272da9864e5c5f5baf370f1bd24bc4e25d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 18 May 2004 18:49: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 bd31629c83..7b686f9dd1 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -1150,6 +1150,7 @@ void mySDL_FixupPalettedAlpha( SDL_Surface *img ) if( img->flags & SDL_SRCCOLORKEY ) { img->flags &= ~SDL_SRCCOLORKEY; + ASSERT_M( (int)img->format->colorkey < img->format->palette->ncolors, ssprintf("%i",img->format->colorkey) ); img->format->palette->colors[ img->format->colorkey ].unused = 0; } }