Blueprint works only in Editor

-1 means the item is not found. It’s not an array index.