From 09cf46a91efd2f5b2c3d86ec87c3fcb87cecb9f4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 4 Jun 2003 22:07:38 +0000 Subject: [PATCH] fix wrong assert --- stepmania/src/SDL_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); }