瀏覽代碼

Build fixes

Tomasz Zieliński 1 年之前
父節點
當前提交
19633a0f62
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      lib/rmg/Zone.h
  2. 1 1
      lib/rmg/modificators/ObjectManager.cpp

+ 2 - 1
lib/rmg/Zone.h

@@ -54,7 +54,8 @@ public:
 		return resourceRef + other;
 		return resourceRef + other;
 	}
 	}
 
 
-	T operator+(ThreadSafeProxy<T> & other)
+	template <typename U>
+	T operator+(ThreadSafeProxy<U> & other)
 	{
 	{
 		return get() + other.get();
 		return get() + other.get();
 	}
 	}

+ 1 - 1
lib/rmg/modificators/ObjectManager.cpp

@@ -614,7 +614,7 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
 			}
 			}
 		}
 		}
 
 
-		for (auto id : sorted)
+		for (auto id : adjacentZones)
 		{
 		{
 			auto otherZone = map.getZones().at(id);
 			auto otherZone = map.getZones().at(id);
 			if ((otherZone->getType() == ETemplateZoneType::WATER) == (zone.getType()	== ETemplateZoneType::WATER))
 			if ((otherZone->getType() == ETemplateZoneType::WATER) == (zone.getType()	== ETemplateZoneType::WATER))