UI: Fixed minor issue with "Load Random Game" feature

This commit is contained in:
Sour 2018-06-02 19:14:25 -04:00
parent 365d246d92
commit 76ad3946c0

View file

@ -112,7 +112,7 @@ namespace Mesen.GUI.Forms
MesenMsgBox.Show("RandomGameNoGameFound", MessageBoxButtons.OK, MessageBoxIcon.Information);
} else {
Random random = new Random();
string randomGame = gameRoms[random.Next(gameRoms.Count - 1)];
string randomGame = gameRoms[random.Next(gameRoms.Count)];
LoadFile(randomGame);
}
}