forked from teamnwah/openmw-tes3coop
travis fix #2
This commit is contained in:
parent
69c1eb28c5
commit
74697f8116
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue