Fix a bug in the video options screen whereby if the current video mode is not available anymore the game would crash.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3007 4a71c877-e1ca-e34f-864e-861f7616d084
master
Freddie Witherden 2007-12-09 11:44:46 +00:00
parent 76840b01d2
commit 2708cc023b
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ BOOL runGameOptions4Menu(void)
int current, count;
// Get the current mode offset
for (count = 0; modes[count]; count++)
for (count = 0, current = 0; modes[count]; count++)
{
if (war_GetWidth() == modes[count]->w
&& war_GetHeight() == modes[count]->h)