1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Remove few more implicit conversions

This commit is contained in:
Ivan Savenko
2023-11-08 16:13:08 +02:00
parent 34338f4eaa
commit 13763cad8e
17 changed files with 50 additions and 54 deletions

View File

@@ -320,7 +320,7 @@ void CGResource::collectRes(const PlayerColor & player) const
{
sii.type = EInfoWindowMode::INFO;
sii.text.appendLocalString(EMetaText::ADVOB_TXT,113);
sii.text.replaceLocalString(EMetaText::RES_NAMES, resourceID());
sii.text.replaceName(resourceID());
}
sii.components.emplace_back(ComponentType::RESOURCE, resourceID(), amount);
sii.soundID = soundBase::pickup01 + CRandomGenerator::getDefault().nextInt(6);