diff options
author | bjarni <bjarni@openttd.org> | 2006-10-10 17:53:08 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-10-10 17:53:08 +0000 |
commit | 9cf0fa32386a24726e4031f1a7b890611cd81b69 (patch) | |
tree | c21f60d696af75135e19989a16ee17def3cac85a | |
parent | 5b0183ce70eeed0fd2f90aa30acaeddc97a3c6b8 (diff) | |
download | openttd-9cf0fa32386a24726e4031f1a7b890611cd81b69.tar.xz |
(svn r6728) -Fix r6651: solved issue where moving rail vehicles in a depot could read from a NULL pointer
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 841d0ffdf..25a5b9884 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -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)) { |