We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aaee21 commit 92c7724Copy full SHA for 92c7724
UI/MainScreen.cpp
@@ -400,7 +400,7 @@ void GameButton::Draw(UIContext &dc) {
400
};
401
int regionIndex = (int)ginfo->region;
402
if (regionIndex >= (int)GameRegion::FLAG_COUNT || regionIndex < 0) {
403
- regionIndex = (int)GameRegion::FLAG_COUNT - 1;
+ regionIndex = (int)GameRegion::UNKNOWN;
404
}
405
const AtlasImage *image = dc.Draw()->GetAtlas()->getImage(regionIcons[regionIndex]);
406
if (image) {
0 commit comments