GUI: Fix endless loop in previous commit.

The iterator was not advanced in the loop. So the code worked when
I ran it in Linux as the first item was matching.

Thanks for Robert for spotting and reporting it.
This commit is contained in:
Kimmo Varis 2011-10-03 19:37:26 +03:00
parent dbef9b34b1
commit 155eeb8e0a
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ Platform& Platforms::get(Settings::PlatformType platform)
{
return *iter;
}
++iter;
}
return mPlatforms.first();
}