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

Check if entire pane is liquid items before allowing moving all in AIM #37776

Merged
merged 3 commits into from Feb 7, 2020
Merged

Conversation

ghost
Copy link

@ghost ghost commented Feb 6, 2020

Summary

SUMMARY: Bugfixes "Check if entire pane is liquid items before allowing moving all in AIM"

Purpose of change

Fixes #33962

Describe the solution

Add check that the entire list of items in the pane can be moved before moving all.
The AIM currently checks if its liquid when you select one item to move, or when there is more than one item, and you select move all, but not when you select move all on just one item that is liquid.

Describe alternatives you've considered

N/A

Testing

before fix - dropped water on floor, opened AIM, tried to move it with , key to move all. it turned into a zero-charge weird item, then subsequent attempts to move it, caused a crash.

After fix - cannot "move all" when its a liquid item.

Additional context

N/A

src/advanced_inv.cpp Outdated Show resolved Hide resolved
src/advanced_inv.cpp Outdated Show resolved Hide resolved
davidpwbrown and others added 2 commits February 6, 2020 23:43
Co-Authored-By: Isaac Freund <[email protected]>
Co-Authored-By: Isaac Freund <[email protected]>
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones labels Feb 7, 2020
@ZhilkinSerg ZhilkinSerg merged commit 9aa7645 into CleverRaven:master Feb 7, 2020
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` Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash after trying to move spilled dried water
2 participants