mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 13:36:57 +02:00
fix removal of assignment from queue to not remove all
This commit is contained in:
parent
f7b0158cfe
commit
dbc6fff73b
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,10 @@ int main(int argc, const char* argv[]) {
|
|||
// delete this assignment now that it has been sent out
|
||||
delete *assignment;
|
||||
// remove it from the deque and make the iterator the next assignment
|
||||
assignment = assignmentQueue.erase(assignment);
|
||||
assignmentQueue.erase(assignment);
|
||||
|
||||
// stop looping - we've handed out an assignment
|
||||
break;
|
||||
} else {
|
||||
// push forward the iterator
|
||||
assignment++;
|
||||
|
|
Loading…
Reference in a new issue