CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.66k stars 4.18k forks source link

Fix reference after removal error in grab break code #78067

Closed kevingranade closed 14 hours ago

kevingranade commented 16 hours ago

Summary

None

Purpose of change

Fixes #72763 When the code handling grab break due to a push technique is executed, it attempts to record a debug message about the grab break, in doing so it dereferences an effect object that has been removed.

Describe the solution

Stash the string in question before removing the effect.

RenechCDDA commented 15 hours ago

Ah that does make sense. Well I'm glad somebody figured it out