diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 42c81eaeb..83d7875df 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -413,7 +413,7 @@ void resTable::traverseConst ( void (T::*pCB)() const ) const while ( pList < &this->pTable[this->hashIdMask+1] ) { tsSLIterConst pItem = pList->firstIter (); while ( pItem.valid () ) { - tsSLIter pNext = pItem; + const tsSLIter pNext = pItem; pNext++; ( pItem.pointer ()->*pCB ) (); pItem = pNext;