mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 20:41:35 +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)
|
if (nearestDist < std::numeric_limits<float>::max() && mPackages.begin() != itActualCombat)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue