mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run.
This commit is contained in:
parent
fa83291a76
commit
19f8990f64
|
@ -196,6 +196,8 @@ CommandCost CmdRenameGroup(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
g->string_id = str;
|
g->string_id = str;
|
||||||
|
|
||||||
InvalidateWindowData(GetWCForVT(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_player);
|
InvalidateWindowData(GetWCForVT(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_player);
|
||||||
|
} else {
|
||||||
|
DeleteName(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
return CommandCost();
|
return CommandCost();
|
||||||
|
|
Loading…
Reference in New Issue