diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 5192376718..1e4f310012 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -196,6 +196,8 @@ CommandCost CmdRenameGroup(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) g->string_id = str; InvalidateWindowData(GetWCForVT(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_player); + } else { + DeleteName(str); } return CommandCost();