router: allow negative indices to pick (N-index) items in LINK_HOLDER
This commit is contained in:
@@ -60,6 +60,8 @@ public:
|
||||
|
||||
LINKED_ITEM* GetLink( int aIndex ) const
|
||||
{
|
||||
if( aIndex < 0 )
|
||||
aIndex += m_links.size();
|
||||
return m_links[aIndex];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user