summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-01 22:39:11 +0000
committerrubidium <rubidium@openttd.org>2008-01-01 22:39:11 +0000
commit8e0f02d8408c2018a9f957752c027c377656c024 (patch)
tree4bf41b7db2d0252b2792efa4118ad5c35d045601
parent890296c125e11438c82371405744b51a2d58eb06 (diff)
downloadopenttd-8e0f02d8408c2018a9f957752c027c377656c024.tar.xz
(svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run.
-rw-r--r--src/group_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
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();