Find element in array always returns -1 in packaged build only

I’ve just created a clean project in 4.14.3 using the third person template using this in editor works as intended:
should return 2 which it does (in editor) but when i package my project in “development” or “shipping” it returns -1 every time.

In editor are you playing in dedicated server?

My understanding is when not running dedicated server the client is server which will return -1 while a client on a server returns 1? Something to do with that.

No this is for single-player only (no multiplayer involved while testing this)