From c7ac1eee5926bf9e902e91d13f387ab2b952009f Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Sat, 1 Jan 2022 02:57:38 +0300 Subject: [PATCH] Fixes runtime when MODsuit gets EMPed (#63706) Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> --- code/modules/mod/mod_control.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mod/mod_control.dm b/code/modules/mod/mod_control.dm index 015fa5e44ae..e14c69320b8 100644 --- a/code/modules/mod/mod_control.dm +++ b/code/modules/mod/mod_control.dm @@ -396,7 +396,7 @@ to_chat(wearer, span_notice("[severity > 1 ? "Light" : "Strong"] electromagnetic pulse detected!")) if(. & EMP_PROTECT_CONTENTS) return - selected_module.on_deactivation() + selected_module?.on_deactivation() wearer.apply_damage(10 / severity, BURN, spread_damage=TRUE) to_chat(wearer, span_danger("You feel [src] heat up from the EMP, burning you slightly.")) if(wearer.stat < UNCONSCIOUS && prob(10))