fix a thinko pointed out by zenja-b

This commit is contained in:
Bill Currie 2004-05-08 23:27:05 +00:00
parent 8a237169c3
commit e9f19be2bb
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ CL_UpdateScreen (double realtime)
{
unsigned index = cl.intermission;
if (index > sizeof (scr_funcs) / sizeof (scr_funcs[0]))
if (index >= sizeof (scr_funcs) / sizeof (scr_funcs[0]))
index = 0;
cl_wateralpha = r_wateralpha->value;

View file

@ -105,7 +105,7 @@ CL_UpdateScreen (double realtime)
{
unsigned index = cl.intermission;
if (index > sizeof (scr_funcs) / sizeof (scr_funcs[0]))
if (index >= sizeof (scr_funcs) / sizeof (scr_funcs[0]))
index = 0;
// don't allow cheats in multiplayer