equal
deleted
inserted
replaced
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); |