Fix inverted logic in working out which resources are active (#5127)

This line is meant to skip the rest of the loop for things that have previously
been inserted in to loaded_resources; but instead it skipped the rest of the
loop unless the id was already in loaded_resources. Fixes #5126.
This commit is contained in:
Steve Cotton 2020-09-04 13:59:28 +02:00 committed by GitHub
parent 51f7340067
commit 538a172079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ std::set<std::string> game_classification::active_addons(const std::string& scen
const modevents_entry& current = mods.front();
if(current.type == "resource") {
if(loaded_resources.insert(current.id).second) {
if(!loaded_resources.insert(current.id).second) {
mods.pop_front();
continue;
}