diff options
Diffstat (limited to 'engines/saga/events.cpp')
-rw-r--r-- | engines/saga/events.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/saga/events.cpp b/engines/saga/events.cpp index 5570665606..2e0cb9f09a 100644 --- a/engines/saga/events.cpp +++ b/engines/saga/events.cpp @@ -580,7 +580,8 @@ int Events::handleInterval(Event *event) { Event *Events::queue(Event *event) { Event *queuedEvent; - queuedEvent = &*_eventList.pushBack(*event); + _eventList.push_back(*event); + queuedEvent = &*--_eventList.end(); initializeEvent(queuedEvent); return queuedEvent; |