summaryrefslogtreecommitdiff
path: root/src/signs_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/signs_base.h')
-rw-r--r--src/signs_base.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signs_base.h b/src/signs_base.h
index cf1f99005..88e57d330 100644
--- a/src/signs_base.h
+++ b/src/signs_base.h
@@ -38,15 +38,15 @@ static inline SignID GetMaxSignIndex()
* _really_ returns the highest index. Now it just returns
* the next safe value we are sure about everything is below.
*/
- return GetSignPoolSize() - 1;
+ return Sign::GetPoolSize() - 1;
}
static inline bool IsValidSignID(uint index)
{
- return index < GetSignPoolSize() && Sign::Get(index)->IsValid();
+ return index < Sign::GetPoolSize() && Sign::Get(index)->IsValid();
}
-#define FOR_ALL_SIGNS_FROM(ss, start) for (ss = Sign::Get(start); ss != NULL; ss = (ss->index + 1U < GetSignPoolSize()) ? Sign::Get(ss->index + 1U) : NULL) if (ss->IsValid())
+#define FOR_ALL_SIGNS_FROM(ss, start) for (ss = Sign::Get(start); ss != NULL; ss = (ss->index + 1U < Sign::GetPoolSize()) ? Sign::Get(ss->index + 1U) : NULL) if (ss->IsValid())
#define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)
#endif /* SIGNS_BASE_H */