… | |
… | |
1106 | |
1106 | |
1107 | SET_FLAG (op, FLAG_NO_APPLY); /* prevent loops */ |
1107 | SET_FLAG (op, FLAG_NO_APPLY); /* prevent loops */ |
1108 | |
1108 | |
1109 | bool has_unpaid = false; |
1109 | bool has_unpaid = false; |
1110 | |
1110 | |
1111 | // quite inefficient to do this here twice, but the api doesn'T lend itself to |
1111 | // quite inefficient to do this here twice, but the api doesn't lend itself to |
1112 | // a quick and small change :( |
1112 | // a quick and small change :( |
1113 | for (object::depth_iterator item = op->begin (); item != op->end (); ++item) |
1113 | for (object::depth_iterator item = op->begin (); item != op->end (); ++item) |
1114 | if (item->flag [FLAG_UNPAID]) |
1114 | if (item->flag [FLAG_UNPAID]) |
1115 | { |
1115 | { |
1116 | has_unpaid = true; |
1116 | has_unpaid = true; |