mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
VCAI Explore goal: remove useless check
This commit is contained in:
parent
a741c5fefd
commit
f490ea1fcd
@ -597,12 +597,9 @@ TGoalVec Explore::getAllPossibleSubgoals()
|
|||||||
case Obj::MONOLITH_TWO_WAY:
|
case Obj::MONOLITH_TWO_WAY:
|
||||||
case Obj::SUBTERRANEAN_GATE:
|
case Obj::SUBTERRANEAN_GATE:
|
||||||
auto tObj = dynamic_cast<const CGTeleport *>(obj);
|
auto tObj = dynamic_cast<const CGTeleport *>(obj);
|
||||||
if(tObj)
|
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
|
||||||
{
|
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
|
||||||
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
|
objs.push_back (obj);
|
||||||
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
|
|
||||||
objs.push_back (obj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user