Merge pull request #386 from pjft/scraper-crash

Fix crash when scraping folders
This commit is contained in:
Jools Wills 2018-03-09 17:15:42 +00:00 committed by GitHub
commit f7b58527eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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