mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r18361) -Fix: Remove unneeded usage of invalid pointer. Also thank Hirundo and SmatZ.
This commit is contained in:
parent
976246aedc
commit
d634f31c7b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user