Human Hard Del Fix (#21884)

This PR fixes the Hard Del() caused by deleting any
/mob/living/carbon/human. For once I've actually sat down and tested a
hard del PR, so here's the proof that the problem is solved:

<img width="1305" height="411" alt="image"
src="https://github.com/user-attachments/assets/d11d7e14-e349-4a33-b154-0821c27154a4"
/>
This commit is contained in:
VMSolidus
2026-02-19 01:37:20 +00:00
committed by GitHub
parent 310ed9b4c0
commit bb34bb4f5e
4 changed files with 15 additions and 5 deletions
+4 -1
View File
@@ -4,7 +4,10 @@
/mob/Destroy()//This makes sure that mobs with clients/keys are not just deleted from the game.
MOB_STOP_THINKING(src)
// Tell any mobs touching us that they're not pulling us anymore.
stop_pulling()
// Delete and null the grab objects that are touching this mob.
QDEL_LIST(grabbed_by)
GLOB.mob_list -= src
GLOB.dead_mob_list -= src
GLOB.living_mob_list -= src