Skip to content

Commit 155eeb8

Browse files
committed
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.
1 parent dbef9b3 commit 155eeb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gui/platforms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Platform& Platforms::get(Settings::PlatformType platform)
5656
{
5757
return *iter;
5858
}
59+
++iter;
5960
}
6061
return mPlatforms.first();
6162
}

0 commit comments

Comments
 (0)