Mobs reappearing in grabs fix (#11512)

This commit is contained in:
Doxxmedearly
2021-03-23 13:44:06 +01:00
committed by GitHub
parent 87cf961a26
commit 9e792dd809
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -325,7 +325,7 @@
//This is used to make sure the victim hasn't managed to yackety sax away before using the grab.
/obj/item/grab/proc/confirm()
if(!assailant || !affecting)
if(!assailant || !affecting || QDELETED(affecting))
qdel(src)
return 0
@@ -0,0 +1,6 @@
author: Doxxmedearly
delete-after: True
changes:
- bugfix: "Fixed a bug where deleted mobs would sometimes reappear in someone's hands if grabbed, such as holodeck penguins."