1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Update CObjectHandler.cpp

Changed type of "for" variable to auto in dailyIncome
This commit is contained in:
Macron1Robot 2014-04-28 23:23:24 +04:00
parent 558b155c0e
commit cd7ec5716f

View File

@ -2274,11 +2274,11 @@ TResources CGTownInstance::dailyIncome() const
{
TResources ret;
for (TPairCBuilding p : town->buildings)
for (auto & p : town->buildings)
{
BuildingID buildingUpgrade;
for (TPairCBuilding p2 : town->buildings)
for (auto & p2 : town->buildings)
{
if (p2.second->upgrade == p.first)
{