Added this exception to avoid game crash.
parent
1c8d7e4e04
commit
d8eaaabeb3
|
@ -917,7 +917,14 @@ bool runVideoOptionsMenu(void)
|
|||
current = 0;
|
||||
}
|
||||
|
||||
// Set the new width and height (takes effect on restart)
|
||||
// We can't pick resolutions if there are any.
|
||||
if(modes.isEmpty())
|
||||
{
|
||||
qWarning("No resolutions available to change.");
|
||||
break;
|
||||
}
|
||||
|
||||
// Set the new width and height (takes effect on restart)
|
||||
war_SetWidth(modes[current].width());
|
||||
war_SetHeight(modes[current].height());
|
||||
|
||||
|
|
Loading…
Reference in New Issue