浏览代码

Another compile fix.

Tomasz Zieliński 2 年之前
父节点
当前提交
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