mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Improved threa-safety, almost finished building structures in towns.
This commit is contained in:
@@ -533,7 +533,7 @@ void CCastleInterface::recreateBuildings()
|
||||
std::set< std::pair<int,int> > s; //group - id
|
||||
|
||||
|
||||
for (std::set<int>::const_iterator i=town->builtBuildings.begin();i!=town->builtBuildings.end();i++)
|
||||
for (std::set<si32>::const_iterator i=town->builtBuildings.begin();i!=town->builtBuildings.end();i++)
|
||||
{
|
||||
if(CGI->townh->structures.find(town->subID) != CGI->townh->structures.end()) //we have info about structures in this town
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user