diff options
Diffstat (limited to 'engines/sci/graphics/lists32.h')
-rw-r--r-- | engines/sci/graphics/lists32.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/lists32.h b/engines/sci/graphics/lists32.h index b12cd55897..f745a2cb6d 100644 --- a/engines/sci/graphics/lists32.h +++ b/engines/sci/graphics/lists32.h @@ -76,12 +76,12 @@ public: } T *const &operator[](size_type index) const { - assert(index >= 0 && index < _size); + assert(index < _size); return _items[index]; } T *&operator[](size_type index) { - assert(index >= 0 && index < _size); + assert(index < _size); return _items[index]; } @@ -144,7 +144,7 @@ public: * Erases the object pointed to at the given index. */ void erase_at(size_type index) { - assert(index >= 0 && index < _size); + assert(index < _size); delete _items[index]; _items[index] = nullptr; |