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

Don't crash on loss of target for ACT_READ #38319

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

ifreund
Copy link
Contributor

@ifreund ifreund commented Feb 25, 2020

Summary

SUMMARY: Bugfixes "Don't crash on loss of target for ACT_READ."

Purpose of change

Missed a return in #35538

This can occur if the book an NPC is reading is removed from their
inventory.

Describe the solution

Add a return

Testing

None, I don't think this could be wrong.

This can occur if the book an NPC is reading is removed from their
inventory.
@ifreund ifreund added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` NPC / Factions NPCs, AI, Speech, Factions, Ownership and removed NPC / Factions NPCs, AI, Speech, Factions, Ownership labels Feb 25, 2020
@ZhilkinSerg ZhilkinSerg merged commit 147b427 into CleverRaven:master Feb 25, 2020
@ifreund ifreund deleted the npc-read-crash branch February 25, 2020 21:26
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`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants