From 75116bfd53602c49da55fc477cbfe004ff2addc0 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Mon, 24 Feb 2014 01:16:19 -0600 Subject: [PATCH] Runtime fix: Someone using a gas mask with no tank...IN SPACE runtime error: Cannot read null.oxygen proc name: copy from (/datum/gas_mixture/proc/copy_from) source file: FEA_gas_mixture.dm,480 usr: null src: /datum/gas_mixture (/datum/gas_mixture) call stack: /datum/gas_mixture (/datum/gas_mixture): copy from(null) Basileus (/mob/living/carbon/human): breathe() Basileus (/mob/living/carbon/human): Life() /datum/controller/game_control... (/datum/controller/game_controller): process mobs() /datum/controller/game_control... (/datum/controller/game_controller): process() runtime error: Cannot read null.toxins proc name: breathe (/mob/living/carbon/human/proc/breathe) source file: life.dm,339 usr: null src: Basileus (/mob/living/carbon/human) call stack: Basileus (/mob/living/carbon/human): breathe() Basileus (/mob/living/carbon/human): Life() /datum/controller/game_control... (/datum/controller/game_controller): process mobs() /datum/controller/game_control... (/datum/controller/game_controller): process() --- code/modules/mob/living/carbon/human/life.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 00368c2debd..8470095cde0 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -325,7 +325,7 @@ breath = loc.remove_air(breath_moles) - if(istype(wear_mask, /obj/item/clothing/mask/gas)) + if(istype(wear_mask, /obj/item/clothing/mask/gas) && breath) var/obj/item/clothing/mask/gas/G = wear_mask var/datum/gas_mixture/filtered = new