diff --git a/lib/CArtHandler.cpp b/lib/CArtHandler.cpp index 8893da8c0..f8993b1f5 100644 --- a/lib/CArtHandler.cpp +++ b/lib/CArtHandler.cpp @@ -709,16 +709,9 @@ void CArtHandler::initAllowedArtifactsList(const std::vector &allowed) majors.clear(); relics.clear(); - for (ArtifactID i=ArtifactID::SPELLBOOK; i(objects.size())); i.advance(1)) { - //check artifacts allowed on a map - //TODO: This line will be different when custom map format is implemented - if (allowed[i] && legalArtifact(i)) - allowedArtifacts.push_back(objects[i]); - } - for(ArtifactID i = ArtifactID::ART_SELECTION; i < ArtifactID(static_cast(objects.size())); i.advance(1)) //try to allow all artifacts added by mods - { - if (legalArtifact(ArtifactID(i))) + if (allowed[i] && legalArtifact(ArtifactID(i))) allowedArtifacts.push_back(objects[i]); //keep im mind that artifact can be worn by more than one type of bearer }