mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Remove ConstTransitivePtr from hero and town instances
This commit is contained in:
@@ -267,7 +267,7 @@ void AINodeStorage::calculateTownPortalTeleportations(
|
||||
|
||||
for(const CGTownInstance * targetTown : towns)
|
||||
{
|
||||
if(targetTown->visitingHero)
|
||||
if(targetTown->getVisitingHero())
|
||||
continue;
|
||||
|
||||
auto nodeOptional = getOrCreateNode(targetTown->visitablePos(), EPathfindingLayer::LAND, srcNode->chainMask | CAST_CHAIN);
|
||||
|
||||
Reference in New Issue
Block a user