mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 12:05:59 +01:00
Guards against qdeletion in afterattack (#94211)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
hitsound = 'sound/items/weapons/bladeslice.ogg'
|
||||
|
||||
/obj/item/knife/envy/afterattack(atom/target, mob/living/carbon/human/user, list/modifiers, list/attack_modifiers)
|
||||
if(!istype(user) || !ishuman(target))
|
||||
if(!istype(user) || !ishuman(target) || QDELETED(target))
|
||||
return
|
||||
|
||||
var/mob/living/carbon/human/H = target
|
||||
|
||||
Reference in New Issue
Block a user