diff options
-rw-r--r-- | engines/hdb/ai-lists.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp index df779d5900..a652a8cfbb 100644 --- a/engines/hdb/ai-lists.cpp +++ b/engines/hdb/ai-lists.cpp @@ -133,7 +133,9 @@ void AI::animateTargets() { if (at->killAuto) autoDeactivate(at->x, at->y); + AnimTarget **jt = it; _animTargets->erase(it); + it = jt-1; continue; } } |