From 339627731c3a8e0cfa2cfdb66465d72377fbe124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Fri, 15 Dec 2023 18:26:59 +0100 Subject: [PATCH] Fixes --- lib/rmg/RmgObject.cpp | 1 - lib/rmg/modificators/ObjectManager.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rmg/RmgObject.cpp b/lib/rmg/RmgObject.cpp index a44f3690c..c8952b0f0 100644 --- a/lib/rmg/RmgObject.cpp +++ b/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) diff --git a/lib/rmg/modificators/ObjectManager.cpp b/lib/rmg/modificators/ObjectManager.cpp index d71d4e42a..e48053a24 100644 --- a/lib/rmg/modificators/ObjectManager.cpp +++ b/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()) {