summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-14 10:32:32 +0000
committersmatz <smatz@openttd.org>2008-09-14 10:32:32 +0000
commit9174c19291acc766143a2a01dcaa141b6b05b82d (patch)
tree1cf046386c7c6505825b1fa9c548510d50232a50 /src
parentcbbb2eb85c016a3f008014141de2b9142291b010 (diff)
downloadopenttd-9174c19291acc766143a2a01dcaa141b6b05b82d.tar.xz
(svn r14319) -Fix (r10760): use operator delete when deleting an order, so order pool fills up a bit slower
Diffstat (limited to 'src')
-rw-r--r--src/order_cmd.cpp2
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);