mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Protect every access to zone tiles with a mutex
This commit is contained in:
@ -144,8 +144,8 @@ void RoadPlacer::drawRoads(bool secondary)
|
||||
return !terrain->isPassable() || !terrain->isLand();
|
||||
});
|
||||
|
||||
zone.areaPossible().subtract(roads);
|
||||
zone.freePaths().unite(roads);
|
||||
zone.areaPossible()->subtract(roads);
|
||||
zone.freePaths()->unite(roads);
|
||||
}
|
||||
|
||||
if(!generator.getMapGenOptions().isRoadEnabled())
|
||||
|
Reference in New Issue
Block a user