diff options
author | Eugene Sandulenko | 2019-07-06 00:55:39 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:13 +0200 |
commit | 59417482096b378fe9cc6b65bd35b0dc9ffa13bb (patch) | |
tree | 3cf7a7069c34c973c69f757bb946a51ffb2c4d41 /engines/hdb | |
parent | d285201ec84824537012a39588f56ccbaada9de3 (diff) | |
download | scummvm-rg350-59417482096b378fe9cc6b65bd35b0dc9ffa13bb.tar.gz scummvm-rg350-59417482096b378fe9cc6b65bd35b0dc9ffa13bb.tar.bz2 scummvm-rg350-59417482096b378fe9cc6b65bd35b0dc9ffa13bb.zip |
HDB: Fixed AI::cineRemoveFromBlitList()
This fixes bug with only 1 manny envelope flying
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; + } } } |