diff options
author | rubidium <rubidium@openttd.org> | 2010-08-18 18:52:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-18 18:52:16 +0000 |
commit | 019878118d11a6596eeab608c361dfea06c3f1ff (patch) | |
tree | 4675f56eaa3968827b3a98a1dd924f1de7c4bd13 /src/depot.cpp | |
parent | e2422945301452421ede848aa67a2ff47ed03d13 (diff) | |
download | openttd-019878118d11a6596eeab608c361dfea06c3f1ff.tar.xz |
(svn r20545) -Codechange: make sure an OrderBackup gets cleared when the depot it belongs to gets removed, the depot window gets closed or when another vehicle gets sold in a depot
Diffstat (limited to 'src/depot.cpp')
-rw-r--r-- | src/depot.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/depot.cpp b/src/depot.cpp index f5c134b4b..f53a51ff0 100644 --- a/src/depot.cpp +++ b/src/depot.cpp @@ -11,6 +11,7 @@ #include "stdafx.h" #include "depot_base.h" +#include "order_backup.h" #include "order_func.h" #include "window_func.h" #include "core/pool_func.hpp" @@ -31,6 +32,7 @@ Depot::~Depot() /* Delete the depot-window */ DeleteWindowById(WC_VEHICLE_DEPOT, this->xy); + OrderBackup::Reset(this->xy); /* Delete the depot list */ WindowNumber wno = (this->index << 16) | VLW_DEPOT_LIST | GetTileOwner(this->xy); |