diff options
author | smatz <smatz@openttd.org> | 2008-09-14 10:32:32 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-14 10:32:32 +0000 |
commit | 9174c19291acc766143a2a01dcaa141b6b05b82d (patch) | |
tree | 1cf046386c7c6505825b1fa9c548510d50232a50 | |
parent | cbbb2eb85c016a3f008014141de2b9142291b010 (diff) | |
download | openttd-9174c19291acc766143a2a01dcaa141b6b05b82d.tar.xz |
(svn r14319) -Fix (r10760): use operator delete when deleting an order, so order pool fills up a bit slower
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 0c7849dc1..d48d40462 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -641,7 +641,7 @@ CommandCost CmdDeleteOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) } /* Give the item free */ - order->Free(); + delete order; Vehicle *u = v->FirstShared(); DeleteOrderWarnings(u); |