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

[Crash] Fix IsUnderwaterOnly crash where npc data references can be stale #2830

Merged
merged 2 commits into from Feb 6, 2023

Conversation

Akkadius
Copy link
Member

@Akkadius Akkadius commented Feb 5, 2023

What

Fix IsUnderwaterOnly crash where npc data references can be stale

The getter makes an assumption in the fallback which could also not be valid. This switches the access pattern to reference directly from the NPC instance member variable directly which will always be initialized to false

Crash observed in v22.1.2 http://spire.akkadius.com/dev/release/22.1.2?id=265

@Akkadius Akkadius merged commit c6eb12a into master Feb 6, 2023
@Akkadius Akkadius deleted the akkadius/crash-fix-underwater branch February 6, 2023 23:24
@Akkadius Akkadius mentioned this pull request Feb 7, 2023
catapultam-habeo pushed a commit to catapultam-habeo/pyrelight-server that referenced this pull request Mar 27, 2023
…tale (EQEmu#2830)

* [Crash] Fix IsUnderwaterOnly crash where npc data references can be stale

* m_ prefix
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.

None yet

2 participants