Fix improper handling of multiple AiFollow packages with the same target (Fixes #3077)

This commit is contained in:
scrawl 2015-12-13 17:42:11 +01:00
parent 64424e7262
commit a7e0562e1c

View file

@ -1333,8 +1333,7 @@ namespace MWMechanics
continue;
if (followTarget == actor)
list.push_back(static_cast<MWMechanics::AiFollow*>(*it)->getFollowIndex());
else
break;
break;
}
else if ((*it)->getTypeId() != MWMechanics::AiPackage::TypeIdCombat)
break;