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 crash on restacking inserted item #69378

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

Kamayana
Copy link
Contributor

@Kamayana Kamayana commented Nov 14, 2023

Summary

None

Purpose of change

Fixes #69353. andrei8l pointed out that I made an error that means inserting charged items could lose the original item on restack and crash the game.

Describe the solution

Implement andrei8l's solution of reassigning the pointer on restack.

Describe alternatives you've considered

Testing

Load Tunkhannock-trimmed.tar.gz and insert more milk in the held container. Crashes before this change, works fine after it.

Additional context

Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Items: Containers Things that hold other things labels Nov 14, 2023
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 14, 2023
@akrieger akrieger merged commit b101632 into CleverRaven:master Nov 15, 2023
@Kamayana Kamayana deleted the restack_insertion branch January 9, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Items: Containers Things that hold other things json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when inserting washing soda into a box of, well, washing soda
2 participants