Jump to content

Places where inst.components.inventoryitem:GetGrandOwner() should be used


Hrafnar
  • Fixed

I think I found some places where inst.components.inventoryitem:GetGrandOwner() should be used:

  • scenarios/staff_hounds.lua, line 30: inst.scene_putininventoryfn should use inst.components.inventoryitem:GetGrandOwner() instead of the event's owner parameter, which might be an overflow container. Otherwise the player won't lose sanity when the staff lands in an equipped backpack.
  • components/follower.lua, lines 122-123, 199-200: components.inventoryitem:GetGrandOwner() should be used instead of components.inventoryitem.owner, which might be an overflow container.

(Line numbers are those from the current A New Reign Beta release)


Steps to Reproduce
1. Trigger the code mentioned above while having no free inventory slots except for at least one in your equipped backpack



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...