travis fix #2

This commit is contained in:
mrcheko 2014-05-18 15:41:15 +04:00
parent 69c1eb28c5
commit 74697f8116

View file

@ -159,7 +159,9 @@ void AiSequence::execute (const MWWorld::Ptr& actor,float duration)
if (mPackages.begin() != itActualCombat) if (mPackages.begin() != itActualCombat)
{ {
// move combat package with nearest target to the front // move combat package with nearest target to the front
mPackages.splice(mPackages.begin(), mPackages, itActualCombat); AiPackage *package = (*itActualCombat)->clone();
mPackages.erase(itActualCombat);
mPackages.push_front(package);
} }
} }