Merge pull request #14428 from Kyep/fix_tanks

Fix runtime when activating internals while smoking
This commit is contained in:
AffectedArc07
2020-09-24 22:10:50 +01:00
committed by GitHub
@@ -55,7 +55,7 @@
var/obj/item/clothing/mask/M = C.wear_mask
// If the "mask" isn't actually a mask OR That mask isn't internals compatible AND Their headgear isn't internals compatible
if(!istype(M) || (!(initial(M.flags) & AIRTIGHT) && !(C.head.flags & AIRTIGHT)))
if(!istype(M) || (!(initial(M.flags) & AIRTIGHT) && !(C.head && C.head.flags & AIRTIGHT)))
if(!silent)
to_chat(C, "<span class='warning'>You are not wearing a suitable mask or helmet.</span>")
return FALSE