summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-24 13:39:11 +0000
committerrubidium <rubidium@openttd.org>2010-04-24 13:39:11 +0000
commitf56ebd81c35beb0094c487cc3dc45dc0427fae46 (patch)
tree36776a247dae7d416030b82239b506698c94ce29 /src/vehicle.cpp
parent21883a84d7883df5feb25d6536ec8f67a053fe42 (diff)
downloadopenttd-f56ebd81c35beb0094c487cc3dc45dc0427fae46.tar.xz
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index bd016c683..8d902b241 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -24,6 +24,7 @@
#include "vehicle_gui.h"
#include "train.h"
#include "aircraft.h"
+#include "newgrf_debug.h"
#include "newgrf_engine.h"
#include "newgrf_sound.h"
#include "newgrf_station.h"
@@ -681,6 +682,7 @@ Vehicle::~Vehicle()
UpdateVehiclePosHash(this, INVALID_COORD, 0);
DeleteVehicleNews(this->index, INVALID_STRING_ID);
+ DeleteNewGRFInspectWindow(GetGrfSpecFeature(this->type), this->index);
}
/** Adds a vehicle to the list of vehicles, that visited a depot this tick