1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00
This commit is contained in:
Tomasz Zieliński 2023-12-15 18:26:59 +01:00
parent 99870be24c
commit 339627731c
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -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())
{