diff options
-rw-r--r-- | engines/fullpipe/messages.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp index 4665712ca0..34308976b9 100644 --- a/engines/fullpipe/messages.cpp +++ b/engines/fullpipe/messages.cpp @@ -392,7 +392,12 @@ void MessageQueue::addExCommandToEnd(ExCommand *ex) { } void MessageQueue::insertExCommandAt(int pos, ExCommand *ex) { - warning("STUB: MessageQueue::insertExCommandAt()"); + Common::List<ExCommand *>::iterator it = _exCommands.begin(); + + for (int i = pos; i > 0; i--) + ++it; + + _exCommands.insert(it, ex); } ExCommand *MessageQueue::getExCommandByIndex(uint idx) { |