mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Clean temporary storage if we assign new AI package (bug #4464)
This commit is contained in:
parent
ee45f54b53
commit
ec73011617
2 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,7 @@
|
|||
Bug #4458: AiWander console command handles idle chances incorrectly
|
||||
Bug #4459: NotCell dialogue condition doesn't support partial matches
|
||||
Bug #4461: "Open" spell from non-player caster isn't a crime
|
||||
Bug #4464: OpenMW keeps AiState cached storages even after we cancel AI packages
|
||||
Bug #4469: Abot Silt Striders – Model turn 90 degrees on horizontal
|
||||
Bug #4471: Retrieve SDL window settings instead of using magic numbers
|
||||
Bug #4474: No fallback when getVampireHead fails
|
||||
|
|
|
@ -360,6 +360,14 @@ void AiSequence::stack (const AiPackage& package, const MWWorld::Ptr& actor, boo
|
|||
}
|
||||
|
||||
mPackages.push_back (package.clone());
|
||||
|
||||
// Make sure that temporary storage is empty
|
||||
if (cancelOther)
|
||||
{
|
||||
mAiState.moveIn(new AiCombatStorage());
|
||||
mAiState.moveIn(new AiFollowStorage());
|
||||
mAiState.moveIn(new AiWanderStorage());
|
||||
}
|
||||
}
|
||||
|
||||
AiPackage* MWMechanics::AiSequence::getActivePackage()
|
||||
|
|
Loading…
Reference in a new issue