forked from mirror/OpenTTD
(svn r24567) -Fix [FS#5261]: Non-train vehicle lists were not resorted when vehicles were renamed. (Juanjo)
This commit is contained in:
@@ -1017,7 +1017,7 @@ CommandCost CmdRenameVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
|
|||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
free(v->name);
|
free(v->name);
|
||||||
v->name = reset ? NULL : strdup(text);
|
v->name = reset ? NULL : strdup(text);
|
||||||
InvalidateWindowClassesData(WC_TRAINS_LIST, 1);
|
InvalidateWindowClassesData(GetWindowClassForVehicleType(v->type), 1);
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user