diff options
-rw-r--r-- | src/rail_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 9cd40c83e..412cd5023 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1588,6 +1588,7 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 } } + delete iter; return (cost.GetCost() == 0) ? error : cost; } |