From ad7b6f68173db0ecb6d5a7925770c423874ded8b Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 29 Mar 2011 15:08:21 +0200 Subject: MOHAWK: Don't fail to delete consecutive items. --- engines/mohawk/livingbooks.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines') 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; -- cgit v1.2.3