IOB Error in Shared Function Library Get Length of Chain

Inside of the SharedFunctionLibrary::GetLengthOfChain there’s a logic error: [Image Removed]

This always evaluates to true as a number will never equal that same number - 1. I’ve made a modified version of what I believe was the original intent below:

[Image Removed]

[Attachment Removed]

Steps to Reproduce
Reproduction Just use the SharedFunctionLibrary::GetLengthOfChain function you’ll hit IOB. Details in Descriptoin

[Attachment Removed]

Thanks for raising this. You are correct that the change you’ve made is the correct change, and we’ll get this into main, potentially in the next hotfix.

Dustin

[Attachment Removed]