From b8f6d41418982163965dd5beb0b39dbdce1fbe8f Mon Sep 17 00:00:00 2001 From: truelight Date: Sat, 4 Dec 2004 17:54:56 +0000 Subject: (svn r942) -Merged branch/network back into the trunk --- station_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index c8c119e0f..420520a78 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2415,7 +2415,7 @@ int32 CmdRenameStation(int x, int y, uint32 flags, uint32 p1, uint32 p2) StringID str,old_str; Station *st; - str = AllocateName((byte*)_decode_parameters, 6); + str = AllocateNameUnique((byte*)_decode_parameters, 6); if (str == 0) return CMD_ERROR; @@ -2654,7 +2654,7 @@ static int32 ClearTile_Station(uint tile, byte flags) { void InitializeStations() { int i; - + memset(_stations, 0, sizeof(_stations)); for(i = 0; i != lengthof(_stations); i++) _stations[i].index=i; -- cgit v1.2.3-54-g00ecf