Skip to content

Commit d1db2f7

Browse files
committed
update for changed manager_order default constructor
default-initialized value for `frequency` is now `NONE`, was previously `OneTime`
1 parent 64587d3 commit d1db2f7

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Template for new versions:
5959
## New Features
6060

6161
## Fixes
62+
- `autoclothing`, `autoslab`, `tailor`: orders will no longer be created with a repetition frequency of ``NONE``
6263

6364
## Misc Improvements
6465

plugins/autoclothing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ static void add_clothing_orders() {
613613
newOrder->material_category = clothingOrder.material_category;
614614
newOrder->amount_left = amount;
615615
newOrder->amount_total = amount;
616+
newOrder->frequency = df::workquota_frequency_type::OneTime;
616617
world->manager_orders.all.push_back(newOrder);
617618
}
618619
}

plugins/autoslab.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ static void createSlabJob(df::unit *unit)
141141
order->specdata.hist_figure_id = unit->hist_figure_id;
142142
order->amount_left = 1;
143143
order->amount_total = 1;
144+
order->frequency = df::workquota_frequency_type::OneTime;
144145
world->manager_orders.all.push_back(order);
145146
}
146147

plugins/tailor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ class Tailor {
663663
order->amount_total = c;
664664
order->status.bits.validated = false;
665665
order->status.bits.active = false;
666+
order->frequency = df::workquota_frequency_type::OneTime;
666667
order->id = world->manager_orders.manager_order_next_id++;
667668

668669
world->manager_orders.all.push_back(order);

0 commit comments

Comments
 (0)