mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
HDB: Fix memory leak due to removed animTargets
This commit is contained in:
parent
5363b38fe5
commit
ea77240d4e
@ -128,6 +128,7 @@ void AI::animateTargets() {
|
||||
if (at->killAuto)
|
||||
autoDeactivate(at->x, at->y);
|
||||
|
||||
delete _animTargets[i];
|
||||
_animTargets.remove_at(i);
|
||||
i--;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user