(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
This commit is contained in:
@@ -43,10 +43,10 @@ static inline SignID GetMaxSignIndex()
|
||||
|
||||
static inline bool IsValidSignID(uint index)
|
||||
{
|
||||
return index < GetSignPoolSize() && GetSign(index)->IsValid();
|
||||
return index < GetSignPoolSize() && Sign::Get(index)->IsValid();
|
||||
}
|
||||
|
||||
#define FOR_ALL_SIGNS_FROM(ss, start) for (ss = GetSign(start); ss != NULL; ss = (ss->index + 1U < GetSignPoolSize()) ? GetSign(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 < GetSignPoolSize()) ? Sign::Get(ss->index + 1U) : NULL) if (ss->IsValid())
|
||||
#define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)
|
||||
|
||||
#endif /* SIGNS_BASE_H */
|
||||
|
||||
Reference in New Issue
Block a user