diff options
author | Alyssa Milburn | 2011-03-29 15:08:21 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-03-29 15:08:21 +0200 |
commit | ad7b6f68173db0ecb6d5a7925770c423874ded8b (patch) | |
tree | 84ca1a69f58596d8ce878077b1ebca3639ee9450 | |
parent | 9bf08000323515b300bf7e267f9523c994b0383b (diff) | |
download | scummvm-rg350-ad7b6f68173db0ecb6d5a7925770c423874ded8b.tar.gz scummvm-rg350-ad7b6f68173db0ecb6d5a7925770c423874ded8b.tar.bz2 scummvm-rg350-ad7b6f68173db0ecb6d5a7925770c423874ded8b.zip |
MOHAWK: Don't fail to delete consecutive items.
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 8f497cb7b3..9dd5c9c032 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -498,6 +498,7 @@ void MohawkEngine_LivingBooks::updatePage() { switch (delayedEvent.type) { case kLBDelayedEventDestroy: _items.remove_at(i); + i--; delete delayedEvent.item; if (_focus == delayedEvent.item) _focus = NULL; |