Add whether the vehicle is non-front to the vehicle pool pointer tag
Add iteration filters which check this
This commit is contained in:
@@ -117,12 +117,17 @@ struct Pool : PoolBase {
|
||||
Pool(const char *name);
|
||||
void CleanPool() override;
|
||||
|
||||
inline PtrType GetRaw(size_t index)
|
||||
inline PtrType &GetRawRef(size_t index)
|
||||
{
|
||||
dbg_assert_msg(index < this->first_unused, "index: " PRINTF_SIZE ", first_unused: " PRINTF_SIZE ", name: %s", index, this->first_unused, this->name);
|
||||
return this->data[index];
|
||||
}
|
||||
|
||||
inline PtrType GetRaw(size_t index)
|
||||
{
|
||||
return this->GetRawRef(index);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Titem with given index
|
||||
* @param index of item to get
|
||||
|
Reference in New Issue
Block a user