diff options
author | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:44:30 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:44:30 +0000 |
commit | 8b65e041ebd4104bba8b21fc0f9a2b8ff99c3414 (patch) | |
tree | 00edb541be5d830006e776b5757b0c89ead9abbe /src/group_cmd.cpp | |
parent | 37e321044a1c32873980fc6d75c45011639ca2f3 (diff) | |
download | openttd-8b65e041ebd4104bba8b21fc0f9a2b8ff99c3414.tar.xz |
(svn r24140) -Add [FS#1117]: Group name in the replace vehicle window caption. (Juanjo)
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r-- | src/group_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index ca671e680..fbb043841 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -379,6 +379,7 @@ CommandCost CmdRenameGroup(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 /* Assign the new one */ g->name = reset ? NULL : strdup(text); + SetWindowDirty(WC_REPLACE_VEHICLE, g->vehicle_type); InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack()); } |