Update themes.c

This commit is contained in:
Helloman892
2017-09-04 19:53:41 +01:00
committed by GitHub
parent 8dc7f54f7e
commit bdaa8b52cc

View File

@@ -393,7 +393,7 @@ Result shuffle_install(Theme_s *themes_list, int theme_count)
u32 bgm_sizes[10] = {0}; u32 bgm_sizes[10] = {0};
for (int i = 0; i < theme_count; i++) for (int i = 0; i < theme_count; i++)
{ {
if (count > 9) return MAKERESULT(RL_USAGE, RS_INVALIDARG, RM_COMMON, RD_INVALID_SELECTION); if (count > 10) return MAKERESULT(RL_USAGE, RS_INVALIDARG, RM_COMMON, RD_INVALID_SELECTION);
if (themes_list[i].in_shuffle) if (themes_list[i].in_shuffle)
{ {
shuffle_themes[count++] = &themes_list[i]; shuffle_themes[count++] = &themes_list[i];