diff --git a/lib/rmg/modificators/RoadPlacer.cpp b/lib/rmg/modificators/RoadPlacer.cpp index 68468f799..d03af26e9 100644 --- a/lib/rmg/modificators/RoadPlacer.cpp +++ b/lib/rmg/modificators/RoadPlacer.cpp @@ -175,7 +175,7 @@ void RoadPlacer::drawRoads(bool secondary) void RoadPlacer::addRoadNode(const int3& node) { RecursiveLock lock(externalAccessMutex); - roadNodes.push_back(node); + roadNodes.insert(node); } void RoadPlacer::connectRoads() diff --git a/lib/rmg/modificators/RoadPlacer.h b/lib/rmg/modificators/RoadPlacer.h index 652add222..ebc062281 100644 --- a/lib/rmg/modificators/RoadPlacer.h +++ b/lib/rmg/modificators/RoadPlacer.h @@ -37,7 +37,7 @@ protected: void drawRoads(bool secondary = false); //actually updates tiles protected: - std::vector roadNodes; //tiles to be connected with roads + rmg::Tileset roadNodes; //tiles to be connected with roads rmg::Area roads; //all tiles with roads rmg::Area areaRoads; rmg::Area isolated;