mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
* small fix
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user