diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index b086c7f7ba..4f3d0c6fd0 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -201,7 +201,7 @@ try_element_again: static const char *masks[NUM_ELEMENT_CATEGORIES][12] = { { "", NULL }, { "ini", NULL }, - { "actor", "sprite", "png", "jpg", "bmp", "gif","avi", "mpg", "mpeg", "txt", NULL}, + { "actor", "sprite", "png", "jpg", "bmp", "gif","avi", "mpg", "mpeg", "txt", "", NULL}, { "png", NULL }, { "mp3", "ogg", "wav", NULL }, { "sm", NULL }, @@ -215,6 +215,10 @@ try_element_again: for( int i = 0; asset_masks[i]; ++i ) { + /* No extension means directories. */ + if( asset_masks[i][0] == 0 && !IsADirectory(asPaths[p]) ) + continue; + if( ext == asset_masks[i] ) { asElementPaths.push_back( asPaths[p] );