rail_cmd.c
changeset 1328 e069d2db0e4c
parent 1313 bba6afb8a995
child 1330 8a67d04016ce
equal deleted inserted replaced
1327:f98ba72197f5 1328:e069d2db0e4c
   838 {
   838 {
   839 	Waypoint *cp;
   839 	Waypoint *cp;
   840 	StringID str;
   840 	StringID str;
   841 
   841 
   842 	if (_decode_parameters[0] != 0) {
   842 	if (_decode_parameters[0] != 0) {
   843 		str = AllocateNameUnique((byte*)_decode_parameters, 0);
   843 		str = AllocateNameUnique((const char*)_decode_parameters, 0);
   844 		if (str == 0) return CMD_ERROR;
   844 		if (str == 0) return CMD_ERROR;
   845 
   845 
   846 		if (flags & DC_EXEC) {
   846 		if (flags & DC_EXEC) {
   847 			cp = &_waypoints[p1];
   847 			cp = &_waypoints[p1];
   848 			if (~cp->town_or_string & 0xC000) DeleteName(cp->town_or_string);
   848 			if (~cp->town_or_string & 0xC000) DeleteName(cp->town_or_string);