array size fix for r752

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@753 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-09-30 21:35:16 +00:00
parent f76a882d53
commit 117899f402

View file

@ -1030,7 +1030,7 @@ static void VID_InitFullDIB (void)
// enumerate fullscreen modes
flags = SDL_DEFAULT_FLAGS | SDL_FULLSCREEN;
for (i = 0; i < (int)sizeof(bpps); i++)
for (i = 0; i < (int)(sizeof(bpps)/sizeof(int)); i++)
{
if (nummodes >= MAX_MODE_LIST)
break;