diff --git a/src/apps/haiku-depot/List.h b/src/apps/haiku-depot/List.h index 68ee613b88..92d3adf0c4 100644 --- a/src/apps/haiku-depot/List.h +++ b/src/apps/haiku-depot/List.h @@ -121,7 +121,7 @@ public: inline bool Add(const ItemType& copyFrom, int32 index) { - if (index < 0 || index >= (int32)fCount) + if (index < 0 || index > (int32)fCount) return false; if (!_Resize(fCount + 1))