This commit is contained in:
2024-08-16 13:56:54 -04:00
parent 75df00b3e3
commit 2e364ff470
19 changed files with 211 additions and 125 deletions

View File

@@ -24,7 +24,8 @@ template <class T>
T &Block<T>::find(LONG itemIndex)
{
Container<T> *lpCursor=mContainer;
for(Index i=0;i<mSize&&i<itemIndex;i++)lpCursor=lpCursor->next();
Index i=0;
for(i=0;i<mSize&&i<itemIndex;i++)lpCursor=lpCursor->next();
if(i==itemIndex)
{
mLastIndexReferenced=i;