Fix subtle bug in getOutputLinkIndex() (using wrong link counter)
Merge pull request #114 from javierhe/master

Fix subtle bug in getOutputLinkIndex() (we are using the wrong link counter)