summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-01-26 20:51:35 +0000
committertron <tron@openttd.org>2007-01-26 20:51:35 +0000
commite0df42b3a301d65a44785f2043a94c78b38c7bf2 (patch)
tree46ce446469b8b2a1a51b699b3f9d54e23c2bb32b /src
parent8a70d426036f40ace11a48d91009d1fee7cb30e9 (diff)
downloadopenttd-e0df42b3a301d65a44785f2043a94c78b38c7bf2.tar.xz
(svn r8425) -Fix
Do not try to invalidate a window which just got deleted. It is pointless
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_cmd.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index e8f06c5c0..215cfa0fb 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -501,7 +501,6 @@ static void ClearCrashedStation(Vehicle *v)
static void RoadVehDelete(Vehicle *v)
{
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
- InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);