mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
NKAI: remove static ai field
This commit is contained in:
@@ -180,7 +180,7 @@ bool ObjectClusterizer::shouldVisitObject(const CGObjectInstance * obj) const
|
||||
|
||||
auto playerRelations = ai->cb->getPlayerRelations(ai->playerID, obj->tempOwner);
|
||||
|
||||
if(playerRelations != PlayerRelations::ENEMIES && !isWeeklyRevisitable(obj))
|
||||
if(playerRelations != PlayerRelations::ENEMIES && !isWeeklyRevisitable(ai, obj))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user