1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Enable one-way monoliths for AI

This commit is contained in:
Ivan Savenko
2025-01-20 21:34:10 +00:00
parent e26fe815e9
commit ff2de1661a
3 changed files with 5 additions and 3 deletions

View File

@@ -473,7 +473,7 @@ std::vector <const CGObjectInstance *> CGameInfoCallback::getVisitableObjs(int3
for(const CGObjectInstance * obj : t->visitableObjects)
{
if(getPlayerID() || obj->ID != Obj::EVENT) //hide events from players
if(!getPlayerID().has_value() || obj->ID != Obj::EVENT) //hide events from players
ret.push_back(obj);
}