[MIRROR] Fixes infinite, (almost) free wound treatment with stacked medical items (#1006)

* Fixes infinite, (almost) free wound treatment with stacked medical items (#53973)

* Fixes infinite, (almost) free wound treatment with stacked medical items

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-27 11:30:45 +02:00
committed by GitHub
co-authored by MrMelbert
parent 686dad17b4
commit 88b887a8cc
+1 -1
View File
@@ -255,7 +255,7 @@
*/
/datum/wound/proc/try_treating(obj/item/I, mob/user)
// first we weed out if we're not dealing with our wound's bodypart, or if it might be an attack
if(!I || limb.body_zone != user.zone_selected || (I.force && user.a_intent != INTENT_HELP))
if(QDELETED(I) || limb.body_zone != user.zone_selected || (I.force && user.a_intent != INTENT_HELP))
return FALSE
var/allowed = FALSE