From 6018a0190e1e10a199f311ec399c0c816f9e4913 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 1 Oct 2012 19:38:57 +0000 Subject: (svn r24567) -Fix [FS#5261]: Non-train vehicle lists were not resorted when vehicles were renamed. (Juanjo) --- src/vehicle_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3-70-g09d2