# IOB Error in Shared Function Library Get Length of Chain 

**URL:** <https://forums.unrealengine.com/t/iob-error-in-shared-function-library-get-length-of-chain/2851882>\
**Category:** Editor Scripting\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [October 8, 2026, 5:06pm UTC](https://forums.unrealengine.com/t/iob-error-in-shared-function-library-get-length-of-chain/2851882 "2026-10-08T17:06:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 8, 2026, 5:06pm UTC](https://forums.unrealengine.com/t/iob-error-in-shared-function-library-get-length-of-chain/2851882/1 "2026-10-08T17:06:53Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 8, 2026, 5:06pm UTC](https://forums.unrealengine.com/t/iob-error-in-shared-function-library-get-length-of-chain/2851882/2 "2026-10-08T17:06:57Z")

</div>

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

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![DDeVoe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ddevoe/32/1000886_2.png) [@DDeVoe](https://forums.unrealengine.com/u/DDeVoe)\
**Post date:** [October 9, 2026, 12:19am UTC](https://forums.unrealengine.com/t/iob-error-in-shared-function-library-get-length-of-chain/2851882/3 "2026-10-09T00:19:31Z")

</div>

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]
