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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user