mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r24567) -Fix [FS#5261]: Non-train vehicle lists were not resorted when vehicles were renamed. (Juanjo)
This commit is contained in:
parent
adf1929f0a
commit
6018a0190e
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue