mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
lib now uses shared_ptr for entities. Removed manual memory management.
This commit is contained in:
@ -100,8 +100,9 @@ const CMapGenOptions& CMapGenerator::getMapGenOptions() const
|
||||
void CMapGenerator::initQuestArtsRemaining()
|
||||
{
|
||||
//TODO: Move to QuestArtifactPlacer?
|
||||
for (auto art : VLC->arth->objects)
|
||||
for (auto artID : VLC->arth->getDefaultAllowed())
|
||||
{
|
||||
auto art = artID.toArtifact();
|
||||
//Don't use parts of combined artifacts
|
||||
if (art->aClass == CArtifact::ART_TREASURE && VLC->arth->legalArtifact(art->getId()) && art->getPartOf().empty())
|
||||
questArtifacts.push_back(art->getId());
|
||||
|
Reference in New Issue
Block a user