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

Fix initialization of gold pile from random resource with fixed amount

This commit is contained in:
Ivan Savenko
2024-06-17 20:08:07 +00:00
parent f2d870e651
commit c68f2da977
3 changed files with 8 additions and 4 deletions

View File

@@ -1315,7 +1315,7 @@ CGObjectInstance * CMapLoaderH3M::readResource(const int3 & mapPosition, std::sh
if(GameResID(objectTemplate->subid) == GameResID(EGameResID::GOLD))
{
// Gold is multiplied by 100.
object->amount *= 100;
object->amount *= CGResource::GOLD_AMOUNT_MULTIPLIER;
}
reader->skipZero(4);
return object;