Incrementing the manager order id properly.

There's a chance that not doing so could lead to a crash, somehow.
develop
Eric Wald 2016-05-15 22:47:43 -06:00
parent a8f9f912c9
commit 3f0857bff3
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 82e00df85ec147a4a6263f93b03421d76eb24fe0
Subproject commit 23edfbdfadd5f5599c0ce4a5e06ee68e9472d30b

@ -1098,6 +1098,8 @@ function create_orders(order, amount)
-- Todo: Create in a validated state if the fortress is small enough?
new_order.status.validated = false
new_order.status.active = false
new_order.id = df.global.world.manager_order_next_id
df.global.world.manager_order_next_id = df.global.world.manager_order_next_id + 1
df.global.world.manager_orders:insert('#', new_order)
end