mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-02 00:41:51 +00:00
r_vidMode sanity check was off by 1.
This commit is contained in:
parent
45ea17fd70
commit
a1776a22d0
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue