From 59417482096b378fe9cc6b65bd35b0dc9ffa13bb Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 6 Jul 2019 00:55:39 +0200 Subject: HDB: Fixed AI::cineRemoveFromBlitList() This fixes bug with only 1 manny envelope flying --- engines/hdb/ai-cinematic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/hdb') diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index e5062a821a..24ecd291d1 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -469,13 +469,14 @@ Picture *AI::cineFindInBlitList(const char *name) { void AI::cineRemoveFromBlitList(const char *name) { for (int i = 0; i < _numCineBlitList; i++) { - if (Common::matchString(_cineBlitList[i]->id, name, true)) + if (Common::matchString(_cineBlitList[i]->id, name, true)) { delete _cineBlitList[i]; for (; i < _numCineBlitList - 1; i++) _cineBlitList[i] = _cineBlitList[i + 1]; _numCineBlitList--; _cineBlitList[_numCineBlitList] = NULL; return; + } } } -- cgit v1.2.3