summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);