issue #14 commit for review (#50)

This commit is contained in:
Helloman892
2017-09-05 00:25:52 +01:00
committed by Alex Taber
parent 3d17509229
commit 70a40fae44
2 changed files with 2 additions and 0 deletions

View File

@@ -217,6 +217,7 @@ int main(void)
{ {
draw_theme_install(SHUFFLE_INSTALL); draw_theme_install(SHUFFLE_INSTALL);
shuffle_install(themes_list, theme_count); shuffle_install(themes_list, theme_count);
shuffle_theme_count = 0;
} }
} }
} }

View File

@@ -397,6 +397,7 @@ Result shuffle_install(Theme_s *themes_list, int theme_count)
if (themes_list[i].in_shuffle) if (themes_list[i].in_shuffle)
{ {
shuffle_themes[count++] = &themes_list[i]; shuffle_themes[count++] = &themes_list[i];
themes_list[i].in_shuffle = false;
} }
} }
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)