diff options
Diffstat (limited to 'engines/saga/events.cpp')
-rw-r--r-- | engines/saga/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/saga/events.cpp b/engines/saga/events.cpp index 482bb6d46e..cea1d771d7 100644 --- a/engines/saga/events.cpp +++ b/engines/saga/events.cpp @@ -98,7 +98,7 @@ int Events::handleEvents(long msec) { if ((result == kEvStDelete) || (result == kEvStInvalidCode)) { // If there is no event chain, delete the base event. if (event_p->chain == NULL) { - eventi = _eventList.eraseAndPrev(eventi); + eventi = _eventList.reverse_erase(eventi); } else { // If there is an event chain present, move the next event // in the chain up, adjust it by the previous delta time, @@ -650,7 +650,7 @@ int Events::clearList(bool playQueuedMusic) { next_chain = chain_walk->chain; free(chain_walk); } - eventi = _eventList.eraseAndPrev(eventi); + eventi = _eventList.reverse_erase(eventi); } } |