From 19f8990f64173465c685de7a21e07d72030f2810 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 1 Jan 2008 22:39:11 +0000 Subject: (svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run. --- src/group_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 519237671..1e4f31001 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(); -- cgit v1.2.3-54-g00ecf