diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp index 4665712ca09..34308976b9e 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::iterator it = _exCommands.begin(); + + for (int i = pos; i > 0; i--) + ++it; + + _exCommands.insert(it, ex); } ExCommand *MessageQueue::getExCommandByIndex(uint idx) {