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:
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