mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Minor fixes
This commit is contained in:
@ -119,7 +119,7 @@ void CGMine::initObj(CRandomGenerator & rand)
|
||||
}
|
||||
else
|
||||
{
|
||||
producedResource = GameResID(getObjTypeIndex());
|
||||
producedResource = GameResID(getObjTypeIndex().getNum());
|
||||
}
|
||||
producedQuantity = defaultResProduction();
|
||||
}
|
||||
@ -773,7 +773,7 @@ void CGArtifact::initObj(CRandomGenerator & rand)
|
||||
|
||||
std::string CGArtifact::getObjectName() const
|
||||
{
|
||||
return VLC->artifacts()->getByIndex(getArtifact())->getNameTranslated();
|
||||
return VLC->artifacts()->getById(getArtifact())->getNameTranslated();
|
||||
}
|
||||
|
||||
void CGArtifact::onHeroVisit(const CGHeroInstance * h) const
|
||||
|
Reference in New Issue
Block a user