Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deleting items on insert #41556

Merged

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Bugfixes "fix deleting items on insert"

Purpose of change

Fixes #41536

Describe the solution

change the call from item to its contents directly. item::can_contain checks if rigid contained items, which is problematic for the inventory screen, which should only check the top level contents can contain it.

Testing

follow the instructions in the attached issue, see that the item doesn't show in insert screen

@KorGgenT KorGgenT added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) Items: Containers Things that hold other things labels Jun 24, 2020
@ZhilkinSerg
Copy link
Contributor

Should probably resolve most of #41551 too

@KorGgenT
Copy link
Member Author

I don't think it will- this addresses the player using the menu to insert

@ZhilkinSerg
Copy link
Contributor

Yes, my bad - it is a different thing.

@ZhilkinSerg ZhilkinSerg merged commit 5d745f9 into CleverRaven:master Jun 25, 2020
@KorGgenT KorGgenT deleted the fix-deleting-items-on-insert branch July 19, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items: Containers Things that hold other things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Items disappear when manually inserted
2 participants