mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-31 07:58:22 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user