mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Remove quests from CMap, now solely owned by quest objects
This commit is contained in:
@@ -83,11 +83,11 @@ void GraphPaths::calculatePaths(const CGHeroInstance * targetHero, const Nullkil
|
||||
|| node.obj->ID == Obj::BORDER_GATE)
|
||||
{
|
||||
auto questObj = dynamic_cast<const IQuestObject *>(node.obj);
|
||||
auto questInfo = QuestInfo(questObj->getQuest(), node.obj, pos.coord);
|
||||
auto questInfo = QuestInfo(node.obj->id);
|
||||
|
||||
if(node.obj->ID == Obj::QUEST_GUARD
|
||||
&& questObj->getQuest()->mission == Rewardable::Limiter{}
|
||||
&& questObj->getQuest()->killTarget == ObjectInstanceID::NONE)
|
||||
&& questObj->getQuest().mission == Rewardable::Limiter{}
|
||||
&& questObj->getQuest().killTarget == ObjectInstanceID::NONE)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user