router: allow negative indices to pick (N-index) items in LINK_HOLDER

This commit is contained in:
Tomasz Wlostowski
2024-11-02 19:59:08 +01:00
parent 09652efec5
commit b7c47e53ed
+2
View File
@@ -60,6 +60,8 @@ public:
LINKED_ITEM* GetLink( int aIndex ) const
{
if( aIndex < 0 )
aIndex += m_links.size();
return m_links[aIndex];
}