diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index 8fc0c970f0..e4c6eb2a6b 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -189,7 +189,7 @@ void mySDL_GetBitsPerChannel(const SDL_PixelFormat *fmt, Uint32 bits[4]) void mySDL_SetPalette(SDL_Surface *dst, SDL_Color *colors, int start, int cnt) { ASSERT( dst->format->palette ); - ASSERT( start+cnt >= dst->format->palette->ncolors ); + ASSERT( start+cnt <= dst->format->palette->ncolors ); memcpy( dst->format->palette->colors + start, colors, cnt * sizeof(SDL_Color) ); }