diff options
author | frosch <frosch@openttd.org> | 2012-10-01 19:38:57 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-10-01 19:38:57 +0000 |
commit | 6018a0190e1e10a199f311ec399c0c816f9e4913 (patch) | |
tree | d7f3acee9144ab4a42a814178403c21342f9aeaa | |
parent | adf1929f0a01e2ddf55029c565bd8ef0e3959f73 (diff) | |
download | openttd-6018a0190e1e10a199f311ec399c0c816f9e4913.tar.xz |
(svn r24567) -Fix [FS#5261]: Non-train vehicle lists were not resorted when vehicles were renamed. (Juanjo)
-rw-r--r-- | src/vehicle_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp index bfcdb6862..f0a0428dd 100644 --- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -1017,7 +1017,7 @@ CommandCost CmdRenameVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uin if (flags & DC_EXEC) { free(v->name); v->name = reset ? NULL : strdup(text); - InvalidateWindowClassesData(WC_TRAINS_LIST, 1); + InvalidateWindowClassesData(GetWindowClassForVehicleType(v->type), 1); MarkWholeScreenDirty(); } |