1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Update CObjectHandler.cpp

Corrected daily resource income calculation for town buildings
This commit is contained in:
Macron1Robot 2014-04-28 18:22:21 +04:00
parent 2355f3abe1
commit a3aa7314fe

View File

@ -2288,10 +2288,7 @@ TResources CGTownInstance::dailyIncome() const
if (!hasBuilt(buildingUpgrade)&&(hasBuilt(p.first)))
{
for (auto i = Res::WOOD; i <= Res::GOLD; vstd::advance(i, 1))
{
ret[i] += p.second->produce[i];
}
ret += p.second->produce;
}
}