mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-24 03:06:48 +00:00
Fix potential another crash
This commit is contained in:
parent
83be3826ff
commit
e60e0b55eb
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ void AiSequence::execute (const MWWorld::Ptr& actor, CharacterController& charac
|
|||
}
|
||||
}
|
||||
|
||||
assert(!mPackages.empty());
|
||||
if (mPackages.empty())
|
||||
return;
|
||||
|
||||
if (nearestDist < std::numeric_limits<float>::max() && mPackages.begin() != itActualCombat)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue