From e7dedf4e1b2569a3f595f045a61d3d4bc144f3de Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 17 May 2009 11:17:53 +0000 Subject: (svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions) --- src/ai/api/ai_sign.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api') 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) -- cgit v1.2.3-70-g09d2