1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-26 08:41:13 +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,7 +624,10 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
rp->areaIsolated().unite(borderAbove);
}
rp->areaVisitable().add(instance->getVisitablePosition());
if (instance->object().ID == Obj::MONSTER)
{
rp->areaVisitable().add(instance->getVisitablePosition());
}
}
switch (instance->object().ID.toEnum())