Fix crash when scraping folders

This commit is contained in:
pjft 2018-03-09 16:41:55 +00:00
parent 566804e682
commit 25f31d154c

View file

@ -221,7 +221,7 @@ void CollectionSystemManager::updateSystemsList()
// updates all collection files related to the source file // updates all collection files related to the source file
void CollectionSystemManager::refreshCollectionSystems(FileData* file) void CollectionSystemManager::refreshCollectionSystems(FileData* file)
{ {
if (!file->getSystem()->isGameSystem()) if (!file->getSystem()->isGameSystem() || file->getType() != GAME)
return; return;
std::map<std::string, CollectionSystemData> allCollections; std::map<std::string, CollectionSystemData> allCollections;