mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 20:03:26 +00:00
(svn r16395) -Fix (r16379): max sign ID can be higher than total number of signs
This commit is contained in:
parent
6237fe1462
commit
b270ca84ba
@ -15,7 +15,7 @@
|
||||
|
||||
/* static */ SignID AISign::GetMaxSignID()
|
||||
{
|
||||
return (SignID)::Sign::GetNumItems();
|
||||
return (SignID)::Sign::GetPoolSize();
|
||||
}
|
||||
|
||||
/* static */ bool AISign::IsValidSign(SignID sign_id)
|
||||
|
Loading…
Reference in New Issue
Block a user