# HG changeset patch # User rubidium # Date 2008-01-01 22:39:11 # Node ID 30eb63434e7e8c1be7ad2ec24b949c676e1feca4 # Parent edfa408779071a869a5fcb0db8da684ae91914d2 (svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run. diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -196,6 +196,8 @@ CommandCost CmdRenameGroup(TileIndex til g->string_id = str; InvalidateWindowData(GetWCForVT(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_player); + } else { + DeleteName(str); } return CommandCost();