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

* fixed bug when starting certain maps in campaigns

* introduced TPlayerColor typedef
This commit is contained in:
mateuszb
2012-09-24 16:14:53 +00:00
parent 95b866c131
commit 18bd898cb1
16 changed files with 122 additions and 124 deletions

View File

@@ -725,7 +725,7 @@ std::vector < const CGTownInstance *> CPlayerSpecificInfoCallback::getTownsInfo(
{
//boost::shared_lock<boost::shared_mutex> lock(*gs->mx);
std::vector < const CGTownInstance *> ret = std::vector < const CGTownInstance *>();
for ( std::map<ui8, PlayerState>::iterator i=gs->players.begin() ; i!=gs->players.end();i++)
for ( auto i=gs->players.begin() ; i!=gs->players.end();i++)
{
for (size_t j = 0; j < (*i).second.towns.size(); ++j)
{