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

Destroyed cargo part fix #10746

Merged

Conversation

kevingranade
Copy link
Member

Fixes two crash bugs when processing active items in vehicles. Fixes #10659
The first has not been reported, and happens when an active item is present in a vehicle cargo part when the part is destroyed (not just smashed, broken off the vehicle). To reproduce put some meat or something in a vehicle cargo part (e.g. a bicycle basket) then smash said part with a sledgehammer.
The second occurs when an active items iterator is invalidated during item processing. The invalidation is expected due to explosions and such, and there was an error in the code intended to handle it. There's a save in #10659 that reproduces this, but I didn't triage what exactly was causing it, just that this fixes it.

@kevingranade kevingranade added the (S2 - Confirmed) Bug that's been confirmed to exist label Jan 5, 2015
@kevingranade kevingranade force-pushed the destroyed-cargo-part-fix branch from ba48cd0 to 4b6d466 Compare January 6, 2015 06:20
@kevingranade
Copy link
Member Author

Rebased on top of BevapDin's pointfull PR.

@Rivet-the-Zombie Rivet-the-Zombie self-assigned this Jan 6, 2015
Rivet-the-Zombie added a commit that referenced this pull request Jan 6, 2015
@Rivet-the-Zombie Rivet-the-Zombie merged commit f44274a into CleverRaven:master Jan 6, 2015
@kevingranade kevingranade removed the (S2 - Confirmed) Bug that's been confirmed to exist label Jan 6, 2015
@kevingranade kevingranade deleted the destroyed-cargo-part-fix branch March 21, 2015 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGABRT caused by singular iterator dereference in process_item()
2 participants