HDB: Fix memory leak due to removed animTargets

This commit is contained in:
Nipun Garg 2019-07-18 18:17:02 +05:30 committed by Eugene Sandulenko
parent 5363b38fe5
commit ea77240d4e

View File

@ -128,6 +128,7 @@ void AI::animateTargets() {
if (at->killAuto)
autoDeactivate(at->x, at->y);
delete _animTargets[i];
_animTargets.remove_at(i);
i--;
continue;