mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Update CObjectHandler.cpp
Changed type of "for" variable to auto in dailyIncome
This commit is contained in:
parent
558b155c0e
commit
cd7ec5716f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user