aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2011-03-29 15:08:21 +0200
committerAlyssa Milburn2011-03-29 15:08:21 +0200
commitad7b6f68173db0ecb6d5a7925770c423874ded8b (patch)
tree84ca1a69f58596d8ce878077b1ebca3639ee9450 /engines
parent9bf08000323515b300bf7e267f9523c994b0383b (diff)
downloadscummvm-rg350-ad7b6f68173db0ecb6d5a7925770c423874ded8b.tar.gz
scummvm-rg350-ad7b6f68173db0ecb6d5a7925770c423874ded8b.tar.bz2
scummvm-rg350-ad7b6f68173db0ecb6d5a7925770c423874ded8b.zip
MOHAWK: Don't fail to delete consecutive items.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/livingbooks.cpp1
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;