1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Actually avoid only monsters

This commit is contained in:
Tomasz Zieliński
2024-03-01 18:10:05 +01:00
parent 8f1638f78a
commit 4e88290962

View File

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