Skip to content

Commit

Permalink
Surely this can't cause problems (#22962)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oblisk234 authored Jan 17, 2025
1 parent 419cf6b commit 8c05352
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
* Returns QDEL_HINT_HARDDEL (don't change this)
*/
/mob/Destroy()//This makes sure that mobs with clients/keys are not just deleted from the game.
if(client)
stack_trace("Mob with client has been deleted")
else if(ckey)
stack_trace("Mob without client but with associated ckey has been deleted.")

remove_from_mob_list()
remove_from_dead_mob_list()
remove_from_alive_mob_list()
Expand Down

0 comments on commit 8c05352

Please sign in to comment.