(svn r18640) -Fix (r18633): don't assert when accessing first invalid item, it's used quite often in the code
-Revert (r18637): it's not needed any more
This commit is contained in:
@@ -225,7 +225,8 @@ public:
|
||||
*/
|
||||
FORCEINLINE const T *Get(uint index) const
|
||||
{
|
||||
assert(index < this->items);
|
||||
/* Allow access to the 'first invalid' item */
|
||||
assert(index <= this->items);
|
||||
return &this->data[index];
|
||||
}
|
||||
|
||||
@@ -237,7 +238,8 @@ public:
|
||||
*/
|
||||
FORCEINLINE T *Get(uint index)
|
||||
{
|
||||
assert(index < this->items);
|
||||
/* Allow access to the 'first invalid' item */
|
||||
assert(index <= this->items);
|
||||
return &this->data[index];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user