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-861f7616d084master
parent
76840b01d2
commit
2708cc023b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue