mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:37:29 +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 this assignment now that it has been sent out
|
||||||
delete *assignment;
|
delete *assignment;
|
||||||
// remove it from the deque and make the iterator the next 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 {
|
} else {
|
||||||
// push forward the iterator
|
// push forward the iterator
|
||||||
assignment++;
|
assignment++;
|
||||||
|
|
Loading…
Reference in a new issue