Przeglądaj źródła

Another compile fix.

Tomasz Zieliński 2 lat temu
rodzic
commit
c7f4fe8243
1 zmienionych plików z 2 dodań i 1 usunięć
  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