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()
This commit is contained in:
Ccomp5950
2014-02-24 01:16:19 -06:00
parent 0bcd89360a
commit 75116bfd53
+1 -1
View File
@@ -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