mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix loading of preset artifacts and creatures on some custom maps
This commit is contained in:
@ -739,10 +739,13 @@ void CGArtifact::pickRandomObject(CRandomGenerator & rand)
|
||||
break;
|
||||
}
|
||||
|
||||
if (ID != Obj::SPELL_SCROLL)
|
||||
if (ID != MapObjectID::SPELL_SCROLL && ID != MapObjectID::ARTIFACT)
|
||||
{
|
||||
ID = MapObjectID::ARTIFACT;
|
||||
setType(ID, subID);
|
||||
}
|
||||
else if (ID != MapObjectID::SPELL_SCROLL)
|
||||
ID = MapObjectID::ARTIFACT;
|
||||
|
||||
setType(ID, subID);
|
||||
}
|
||||
|
||||
void CGArtifact::initObj(CRandomGenerator & rand)
|
||||
|
Reference in New Issue
Block a user