1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-03 14:52:11 +02:00

Actually, avoid guarded object altogether

This commit is contained in:
Tomasz Zieliński 2024-03-01 18:17:17 +01:00
parent 4e88290962
commit 28f76b2839

View File

@ -624,7 +624,7 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
rp->areaIsolated().unite(borderAbove);
}
if (instance->object().ID == Obj::MONSTER)
if (object.isGuarded())
{
rp->areaVisitable().add(instance->getVisitablePosition());
}