1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Minor fixes

This commit is contained in:
Ivan Savenko
2023-11-02 17:48:48 +02:00
parent 3634fb2158
commit 8d5fa41a19
20 changed files with 51 additions and 55 deletions

View File

@ -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