diff --git a/src/kits/support/List.cpp b/src/kits/support/List.cpp index 627dddebb0..dcd6c88614 100644 --- a/src/kits/support/List.cpp +++ b/src/kits/support/List.cpp @@ -374,7 +374,7 @@ BList::DoForEach(bool (*func)(void *)) { while ((!terminate) && (index < fItemCount)) //check terminate condition. { - terminate = func(fItemList[index]); //reset immediate terminator + terminate = func(fObjectList[index]); //reset immediate terminator index++; //advance along the list. }; } @@ -390,7 +390,7 @@ BList::DoForEach(bool (*func)(void *, void*), void * arg) { while ((!terminate) && (index < fItemCount)) { - terminate = func(fItemList[index], arg); + terminate = func(fObjectList[index], arg); index++; }; }