diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index f9846906f..fdd84fb4c 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -403,7 +403,7 @@ void resTable::destroyAllEntries() // { T *pItem; - while ( ( pItem = pList.get () ) ) { + while ( ( pItem = pList->get () ) ) { fprintf ( stderr, "Warning: Defective class still in resTable after it was destroyed\n" ); // @@ -529,9 +529,9 @@ T *resTable::find (tsSLList &list, const ID &idIn) const if ( *pId == idIn ) { break; } - pItem = pItem->itemAfter (); + pItem = pItem.itemAfter (); } - return pItem; + return & (*pItem); } // @@ -564,7 +564,7 @@ T *resTable::findDelete (tsSLList &list, const ID &idIn) break; } pPrev = pItem; - pItem = pItem->itemAfter (); + pItem = pItem.itemAfter (); } return & (*pItem); }