diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/events.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/saga/events.cpp b/engines/saga/events.cpp index 98f206b29d..0ed1f2b3d9 100644 --- a/engines/saga/events.cpp +++ b/engines/saga/events.cpp @@ -288,9 +288,10 @@ int Events::handleOneShot(Event *event) { case kEventDisplay: ((TextListEntry *)event->data)->display = true; break; - case kEventRemove: - _vm->_scene->_textList.remove(*((TextListEntry *)event->data)); - break; + case kEventRemove: { + TextListEntry entry = *((TextListEntry *)event->data); + _vm->_scene->_textList.remove(entry); + } break; default: break; } |