mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 07:11:49 +00:00
MOHAWK: Don't fail to delete consecutive items.
This commit is contained in:
parent
9bf0800032
commit
ad7b6f6817
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user