Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 8c05352

Browse files
authored
Surely this can't cause problems (#22962)
1 parent 419cf6b commit 8c05352

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/modules/mob/mob.dm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
* Returns QDEL_HINT_HARDDEL (don't change this)
2424
*/
2525
/mob/Destroy()//This makes sure that mobs with clients/keys are not just deleted from the game.
26+
if(client)
27+
stack_trace("Mob with client has been deleted")
28+
else if(ckey)
29+
stack_trace("Mob without client but with associated ckey has been deleted.")
30+
2631
remove_from_mob_list()
2732
remove_from_dead_mob_list()
2833
remove_from_alive_mob_list()

0 commit comments

Comments
 (0)