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:
parent
2355f3abe1
commit
a3aa7314fe
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user