summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-23 11:13:43 +0000
committersmatz <smatz@openttd.org>2009-05-23 11:13:43 +0000
commitb270ca84ba0002ae23aed3bb614e06b19c7197f5 (patch)
treec13578a6551163295ee81e566b935dee5367a9c8 /src
parent6237fe146228e84761c6aba14bf7acf6c359f061 (diff)
downloadopenttd-b270ca84ba0002ae23aed3bb614e06b19c7197f5.tar.xz
(svn r16395) -Fix (r16379): max sign ID can be higher than total number of signs
Diffstat (limited to 'src')
-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 dd164c6ca..29609f29a 100644
--- a/src/ai/api/ai_sign.cpp
+++ b/src/ai/api/ai_sign.cpp
@@ -15,7 +15,7 @@
/* static */ SignID AISign::GetMaxSignID()
{
- return (SignID)::Sign::GetNumItems();
+ return (SignID)::Sign::GetPoolSize();
}
/* static */ bool AISign::IsValidSign(SignID sign_id)