Skip to content

Conversation

@jprzimba
Copy link
Collaborator

getCorpseFromItem

  • Protected the item->getParent()->getContainer() chain by checking parent before dereferencing, preserving special handling for ITEM_BROWSEFIELD without risking a nullptr dereference.

playerRewardChestCollect

  • Safeguarded the item->getContainer()->getParent()->getTile() access chain by validating container, parent, and tile before use. If any component is null, the code avoids a crash and proceeds by directing rewards to playerRewardChest.

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.

2 participants