mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Remove ConstTransitivePtr from hero and town instances
This commit is contained in:
@@ -268,7 +268,7 @@ TeleporterTilesVector CPathfinderHelper::getCastleGates(const PathNodeInfo & sou
|
||||
|
||||
for(const auto & town : getPlayerState(hero->tempOwner)->getTowns())
|
||||
{
|
||||
if(town->id != source.nodeObject->id && town->visitingHero == nullptr
|
||||
if(town->id != source.nodeObject->id && town->getVisitingHero() == nullptr
|
||||
&& town->hasBuilt(BuildingSubID::CASTLE_GATE))
|
||||
{
|
||||
allowedExits.push_back(town->visitablePos());
|
||||
|
||||
Reference in New Issue
Block a user