summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-12-01 21:45:50 +0000
committerfrosch <frosch@openttd.org>2009-12-01 21:45:50 +0000
commitd634f31c7b6d97762b1a793336ddaf2d9c12b96c (patch)
treed2e3b778f62cbc43f31d90f66eb9b7c0b2522dc2
parent976246aedcdad2b8a2d15dc490735a460ca87503 (diff)
downloadopenttd-d634f31c7b6d97762b1a793336ddaf2d9c12b96c.tar.xz
(svn r18361) -Fix: Remove unneeded usage of invalid pointer. Also thank Hirundo and SmatZ.
-rw-r--r--src/train_cmd.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 77425cedb..2cc9a5d0a 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -4098,7 +4098,6 @@ static bool HandleCrashedTrain(Train *v)
if (state >= 4440 && !(v->tick_counter & 0x1F)) {
bool ret = v->Next() != NULL;
DeleteLastWagon(v);
- SetWindowDirty(WC_REPLACE_VEHICLE, (v->group_id << 16) | VEH_TRAIN);
return ret;
}