mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Update CObjectHandler.cpp
Changed type of "for" variable to auto in dailyIncome
This commit is contained in:
@ -2274,11 +2274,11 @@ TResources CGTownInstance::dailyIncome() const
|
|||||||
{
|
{
|
||||||
TResources ret;
|
TResources ret;
|
||||||
|
|
||||||
for (TPairCBuilding p : town->buildings)
|
for (auto & p : town->buildings)
|
||||||
{
|
{
|
||||||
BuildingID buildingUpgrade;
|
BuildingID buildingUpgrade;
|
||||||
|
|
||||||
for (TPairCBuilding p2 : town->buildings)
|
for (auto & p2 : town->buildings)
|
||||||
{
|
{
|
||||||
if (p2.second->upgrade == p.first)
|
if (p2.second->upgrade == p.first)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user