From cfc87813a753e1e0eead54da159bebfd2aa0a575 Mon Sep 17 00:00:00 2001 From: Krausus Date: Mon, 25 May 2015 05:24:16 -0400 Subject: [PATCH] Fixes SMES destruction notification runtime --- code/modules/power/smes.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index d7fedfb7a8f..93ad222f72e 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -212,9 +212,10 @@ /obj/machinery/power/smes/Destroy() if(ticker && ticker.current_state == GAME_STATE_PLAYING) var/area/area = get_area(src) - message_admins("SMES deleted at ([area.name])") - log_game("SMES deleted at ([area.name])") - investigate_log("deleted at ([area.name])","singulo") + if(area) + message_admins("SMES deleted at ([area.name])") + log_game("SMES deleted at ([area.name])") + investigate_log("deleted at ([area.name])","singulo") if(terminal) disconnect_terminal() ..()