From e473e69ba4d59df7f9cdd9a5010cf54a66fd5b90 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 28 Jul 2009 21:06:38 +0000 Subject: (svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants --- src/ai/api/ai_waypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_waypoint.cpp b/src/ai/api/ai_waypoint.cpp index e2a7c3861..d0286c429 100644 --- a/src/ai/api/ai_waypoint.cpp +++ b/src/ai/api/ai_waypoint.cpp @@ -41,7 +41,7 @@ { EnforcePrecondition(false, IsValidWaypoint(waypoint_id)); EnforcePrecondition(false, !::StrEmpty(name)); - EnforcePreconditionCustomError(false, ::strlen(name) < MAX_LENGTH_WAYPOINT_NAME_BYTES, AIError::ERR_PRECONDITION_STRING_TOO_LONG); + EnforcePreconditionCustomError(false, ::strlen(name) < MAX_LENGTH_STATION_NAME_BYTES, AIError::ERR_PRECONDITION_STRING_TOO_LONG); return AIObject::DoCommand(0, waypoint_id, 0, CMD_RENAME_WAYPOINT, name); } -- cgit v1.2.3-54-g00ecf