From 9174c19291acc766143a2a01dcaa141b6b05b82d Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 14 Sep 2008 10:32:32 +0000 Subject: [PATCH] (svn r14319) -Fix (r10760): use operator delete when deleting an order, so order pool fills up a bit slower --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 0c7849dc1c..d48d404622 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);