fix shuffle brick (#134)

This commit is contained in:
LiquidFenrir
2018-01-28 02:37:52 +01:00
committed by GitHub
parent f01e347b17
commit 5090da114f
3 changed files with 5 additions and 5 deletions

View File

@@ -44,9 +44,9 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
if(installmode & THEME_INSTALL_SHUFFLE)
{
if(themes.shuffle_count == 0)
if(themes.shuffle_count < 2)
{
DEBUG("no themes selected for shuffle\n");
DEBUG("not enough themes selected for shuffle\n");
return MAKERESULT(RL_USAGE, RS_INVALIDARG, RM_COMMON, RD_INVALID_SELECTION);
}