Tomasz Zieliński 2 лет назад
Родитель
Сommit
c7f4fe8243
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      lib/mapping/ObstacleProxy.cpp

+ 2 - 1
lib/mapping/ObstacleProxy.cpp

@@ -210,7 +210,8 @@ bool EditorObstaclePlacer::isInTheMap(const int3& tile)
 
 void EditorObstaclePlacer::placeObstacles(CRandomGenerator & rand)
 {
-	finalInsertion(map->getEditManager(), createObstacles(rand));
+	auto obstacles = createObstacles(rand);
+	finalInsertion(map->getEditManager(), obstacles);
 }
 
 VCMI_LIB_NAMESPACE_END