diff options
Diffstat (limited to 'engines/mohawk')
-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; |