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

Mark monster attached to CFiredCharacterCommand unsafe for deletion #436

Merged
merged 1 commit into from Feb 16, 2022

Conversation

Hypexion
Copy link
Contributor

#156 removes dead monsters that are no longer used by anything. However, CFiredCharacterCommand may hold onto a reference to a monster that gets deleted, which can cause a crash. To fix this, monsters that get attached to these commands by CGameScreen::PrepCustomSpeaker should be marked as unsafe for deletion.

Related thread: http://forum.caravelgames.com/viewtopic.php?TopicID=45552

@mrimer mrimer merged commit 3e97978 into CaravelGames:master Feb 16, 2022
@Hypexion Hypexion deleted the fix-speech-crash branch February 16, 2022 17:15
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