mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r6728) -Fix r6651: solved issue where moving rail vehicles in a depot could read from a NULL pointer
This commit is contained in:
parent
5b0183ce70
commit
9cf0fa3238
@ -1137,7 +1137,7 @@ int32 CmdMoveRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
|
||||
if (dst == NULL) {
|
||||
/* We make a new line in the depot, so we know already that we invalidate the window data */
|
||||
InvalidateWindowData(WC_VEHICLE_DEPOT, src_head->tile);
|
||||
InvalidateWindowData(WC_VEHICLE_DEPOT, src->tile);
|
||||
|
||||
// move the train to an empty line. for locomotives, we set the type to TS_Front. for wagons, 4.
|
||||
if (IsTrainEngine(src)) {
|
||||
|
Loading…
Reference in New Issue
Block a user