From bdaa8b52ccdec4dab17f93e5496bc5816db1fa55 Mon Sep 17 00:00:00 2001 From: Helloman892 <1565516+Helloman892@users.noreply.github.com> Date: Mon, 4 Sep 2017 19:53:41 +0100 Subject: [PATCH] Update themes.c --- source/themes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/themes.c b/source/themes.c index 31d3164..ccb7df5 100644 --- a/source/themes.c +++ b/source/themes.c @@ -393,7 +393,7 @@ Result shuffle_install(Theme_s *themes_list, int theme_count) u32 bgm_sizes[10] = {0}; 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) { shuffle_themes[count++] = &themes_list[i];