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 rare crash when unfavoriting an item twice #2180

Merged

Conversation

leoCottret
Copy link
Collaborator

Summary

SUMMARY: Bugfixes "Fix rare crash when unfavoriting an item twice"

Purpose of change

A crash could be triggered when doing a specific chain of action, eg:

  • have some rocks on you
  • have some unfavorited rocks on you
  • place the cursor on the favorited rock
  • press favorite key twice
    This impacted the drop menu and the inventory menu

Describe the solution

Add a check to execute the favoriting action only if the cursor points to an item

Testing

Repeat the steps described in Purpose of change, no more crash

@github-actions github-actions bot added the src changes related to source code. label Nov 10, 2022
@Coolthulhu Coolthulhu self-assigned this Nov 15, 2022
@Coolthulhu Coolthulhu merged commit 82b62d6 into cataclysmbnteam:upload Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants