rail_cmd.c
changeset 1328 eacd8225ed42
parent 1313 f1013ec3d318
child 1330 5d76a0522a11
equal deleted inserted replaced
1327:6e507eb10edd 1328:eacd8225ed42
   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);