summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-17 11:17:53 +0000
committerrubidium <rubidium@openttd.org>2009-05-17 11:17:53 +0000
commite7dedf4e1b2569a3f595f045a61d3d4bc144f3de (patch)
tree4c24aeae74983bd800c3b0b295bf854bd3f3ea89 /src/ai
parent3322cc978fbee678fc9a7abf930e76c0b3ca23a8 (diff)
downloadopenttd-e7dedf4e1b2569a3f595f045a61d3d4bc144f3de.tar.xz
(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions)
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_sign.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_sign.cpp b/src/ai/api/ai_sign.cpp
index 8876bbeec..349bf42a1 100644
--- a/src/ai/api/ai_sign.cpp
+++ b/src/ai/api/ai_sign.cpp
@@ -15,7 +15,7 @@
/* static */ SignID AISign::GetMaxSignID()
{
- return ::GetMaxSignIndex();
+ return ::Sign::GetPoolSize() - 1;
}
/* static */ bool AISign::IsValidSign(SignID sign_id)