author | bjarni |
Sat, 02 Jun 2007 17:23:31 +0000 | |
changeset 6788 | 9a1949f8fab4 |
parent 6787 | 47f6921e8c4c |
child 6789 | d32dd7c82158 |
src/train_cmd.cpp | file | annotate | diff | comparison | revisions |
--- a/src/train_cmd.cpp Sat Jun 02 15:47:38 2007 +0000 +++ b/src/train_cmd.cpp Sat Jun 02 17:23:31 2007 +0000 @@ -839,6 +839,7 @@ Vehicle *u; for (u = first; GetNextVehicle(u) != v; u = GetNextVehicle(u)) {} GetLastEnginePart(u)->next = GetNextVehicle(v); + v->first = NULL; // we shouldn't point to the old first, since the vehicle isn't in that chain anymore return first; }