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:
parent
51f7340067
commit
538a172079
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue