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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user