Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes crash in Join as Freed Mob if some had been deleted (#4678)
# About the pull request <!-- Remove this text and explain what the purpose of your PR is. Mention if you have tested your changes. If you changed a map, make sure you used the mapmerge tool. If this is an Issue Correction, you can type "Fixes Issue #169420" to link the PR to the corresponding Issue number #169420. Remember: something that is self-evident to you might not be to others. Explain your rationale fully, even if you feel it goes without saying. --> Improper usage of weakrefs in ghost freed code resulted in them not being cleared on deletion + the Join as Freed Mob verb to crash if such an entry was still present. Because /mob/Destroy already clears the hard reference, there is no actual reason to use weak references at all, so i just removed all of them. # Explain why it's good for the game Feature must work! # Testing Photographs and Procedure Customary testing that Freed Mobs joining still works after fix. # Changelog :cl: fix: Fixed 'Join as Freed Mob' verb crashing if freed mobs had previously been deleted. /:cl:
- Loading branch information