Fix unselected ruby skin

This commit is contained in:
Benau 2019-10-27 12:50:17 +08:00
parent adaaeb0e8e
commit 249f715c87

View File

@ -247,7 +247,7 @@ void OptionsScreenUI::init()
const std::string& user_skin = UserConfigParams::m_skin_file;
skinSelector->setActive(!in_game);
for (int n = 0; n < skinSelector->getMax(); n++)
for (int n = 0; n <= skinSelector->getMax(); n++)
{
auto ret = m_skins.find(skinSelector->getStringValueFromID(n));
if (ret == m_skins.end())