1
0
Fork 0

(svn r18361) -Fix: Remove unneeded usage of invalid pointer. Also thank Hirundo and SmatZ.

release/1.0
frosch 2009-12-01 21:45:50 +00:00
parent 976246aedc
commit d634f31c7b
1 changed files with 0 additions and 1 deletions

View File

@ -4098,7 +4098,6 @@ static bool HandleCrashedTrain(Train *v)
if (state >= 4440 && !(v->tick_counter & 0x1F)) { if (state >= 4440 && !(v->tick_counter & 0x1F)) {
bool ret = v->Next() != NULL; bool ret = v->Next() != NULL;
DeleteLastWagon(v); DeleteLastWagon(v);
SetWindowDirty(WC_REPLACE_VEHICLE, (v->group_id << 16) | VEH_TRAIN);
return ret; return ret;
} }