Item Granter devices disorganize the player's inventory if the item is at index 0 or 1

Reference ID

None

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Devices

Summary

Item Granter devices disorganize the player’s inventory if the item is at index 0 or 1.
This has been happening for months, I have just found the reason why this is happening

Steps to Reproduce

All_WeaponGranter.SetNextItem(0)
All_WeaponGranter.GrantItem(Agent)
Player receives the item but as you can see in the next video the inventory is disorganized (The option is set to True on the Item Granter Device)

Expected Result

All_WeaponGranter.SetNextItem(0)
All_WeaponGranter.GrantItem(Agent)
Player receives the item but the inventory is disorganized

Observed Result

All_WeaponGranter.SetNextItem(0)
All_WeaponGranter.GrantItem(Agent)
Player receives the item but as you can see in the next video, the inventory is disorganized(The option is set to True on the Item Granter Device)

Platform(s)

All

Island Code

3289-1022-6941

Additional Notes

Check out the videos for more info

Check the examples

Code:

All_WeaponGranter.SetNextItem(0)
All_WeaponGranter.GrantItem(Agent)

As you can see in the following video, the weapon is granted but the players inventory is disorganized

Now check this example, where I found an easy solution by moving the element to several places in the array

Code:

All_WeaponGranter.SetNextItem(5) # Let´s select Index 5, but this is only happens on Index 0 and 1
All_WeaponGranter.GrantItem(Agent)

As you can see in the following video, the weapon is granted and the player´s inventory is not disorganized

To be honest, right now this is NOT a problem for me because I know how to solve it, but probably someone noticed this and it is a bug that has been in UEFN since November 2023