r_vidMode sanity check was off by 1.

This commit is contained in:
Jonathan Young 2013-09-18 12:39:31 +10:00
parent 45ea17fd70
commit a1776a22d0

View file

@ -787,7 +787,7 @@ void R_SetNewMode( const bool fullInit )
}
else
{
if( r_vidMode.GetInteger() > modeList.Num() )
if( r_vidMode.GetInteger() >= modeList.Num() )
{
idLib::Printf( "r_vidMode reset from %i to 0.\n", r_vidMode.GetInteger() );
r_vidMode.SetInteger( 0 );