diff options
author | smatz <smatz@openttd.org> | 2009-05-23 11:13:43 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-23 11:13:43 +0000 |
commit | b270ca84ba0002ae23aed3bb614e06b19c7197f5 (patch) | |
tree | c13578a6551163295ee81e566b935dee5367a9c8 /src/ai | |
parent | 6237fe146228e84761c6aba14bf7acf6c359f061 (diff) | |
download | openttd-b270ca84ba0002ae23aed3bb614e06b19c7197f5.tar.xz |
(svn r16395) -Fix (r16379): max sign ID can be higher than total number of signs
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_sign.cpp | 2 |
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) |