FULLPIPE: Implement MessageQueue::insertExCommandAt()

This commit is contained in:
Eugene Sandulenko 2014-01-08 11:21:57 +02:00
parent d423b5b1fe
commit 19fb0d11bc

View file

@ -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) {