Cataclysm-DDA
Cataclysm-DDA copied to clipboard
Unload zone fixes
Summary
None
Purpose of change
made a mistake and somewhat broke unload and sort zones under certain conditions.
Describe the solution
Added a unit test, fixed an issue with a specific conditional always returning instead of continuing execution.
The actual code is the two lines in activity_item_handling, everything else is for the unit test.
Describe alternatives you've considered
Testing
Unit test attached was basically what I did in game.
Additional context
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.