1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* small fix

This commit is contained in:
mateuszb
2013-02-11 16:07:29 +00:00
parent d540723739
commit 6ff7d61b91
2 changed files with 3 additions and 3 deletions

View File

@@ -711,9 +711,9 @@ std::vector < const CGTownInstance *> CPlayerSpecificInfoCallback::getTownsInfo(
{
//boost::shared_lock<boost::shared_mutex> lock(*gs->mx);
std::vector < const CGTownInstance *> ret = std::vector < const CGTownInstance *>();
BOOST_FOREACH(auto i, gs->players)
BOOST_FOREACH(const auto & i, gs->players)
{
BOOST_FOREACH(auto town, i.second.towns)
BOOST_FOREACH(const auto & town, i.second.towns)
{
if (i.first==player || (isVisible(town, player) && !onlyOur))
{