mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 17:49:41 +00:00
memory leak fix
This commit is contained in:
parent
fa14df62b7
commit
638df221a6
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ void AiSequence::execute (const MWWorld::Ptr& actor,float duration)
|
|||
// target disappeared (e.g. summoned creatures)
|
||||
if (target.isEmpty())
|
||||
{
|
||||
delete *it;
|
||||
mPackages.erase(it++);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue