1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

const-ified CTown. May fix #1444

This commit is contained in:
Ivan Savenko
2013-09-06 21:57:16 +00:00
parent dd72261193
commit 76c77d58f6
7 changed files with 9 additions and 9 deletions

View File

@ -7471,7 +7471,7 @@ GrowthInfo::Entry::Entry(const std::string &format, int _count)
GrowthInfo::Entry::Entry(int subID, BuildingID building, int _count)
: count(_count)
{
description = boost::str(boost::format("%s %+d") % VLC->townh->factions[subID]->town->buildings[building]->Name() % count);
description = boost::str(boost::format("%s %+d") % VLC->townh->factions[subID]->town->buildings.at(building)->Name() % count);
}
CTownAndVisitingHero::CTownAndVisitingHero()