Tomasz Zieliński 2 years ago
parent
commit
339627731c
2 changed files with 1 additions and 2 deletions
  1. 0 1
      lib/rmg/RmgObject.cpp
  2. 1 1
      lib/rmg/modificators/ObjectManager.cpp

+ 0 - 1
lib/rmg/RmgObject.cpp

@@ -191,7 +191,6 @@ Object::Object(CGObjectInstance & object):
 }
 
 Object::Object(const Object & object):
-	dStrength(object.dStrength),
 	guarded(false)
 {
 	for(const auto & i : object.dInstances)

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

@@ -347,7 +347,7 @@ rmg::Path ObjectManager::placeAndConnectObject(const rmg::Area & searchArea, rmg
 				return !obj.getArea().contains(t);
 			});
 		}
-		auto path = zone.searchPath(accessibleArea, onlyStraight, cachedArea);
+		auto path = zone.searchPath(accessibleArea, onlyStraight, subArea);
 		
 		if(path.valid())
 		{