summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-28 21:06:38 +0000
committerrubidium <rubidium@openttd.org>2009-07-28 21:06:38 +0000
commite473e69ba4d59df7f9cdd9a5010cf54a66fd5b90 (patch)
treea362d0c8540e1ecb4ba9ab1cc8c382106d972ac0 /src/ai
parentffa0c7d29d484094832a85e2e0cdbc2f9a9f2a18 (diff)
downloadopenttd-e473e69ba4d59df7f9cdd9a5010cf54a66fd5b90.tar.xz
(svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}