List: Fixed off-by-one check in Add().

Of course we can add right at the end...
This commit is contained in:
Stephan Aßmus
2014-01-20 00:50:35 +01:00
parent 0d8b8ca63a
commit 9fff2ecb3f
+1 -1
View File
@@ -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))