From 84823145417e433a846553130d2c0b3212b84bbb Mon Sep 17 00:00:00 2001 From: mwerezak Date: Sun, 10 Aug 2014 18:37:39 -0400 Subject: [PATCH] Fixes runtime in train/explode() --- code/modules/vehicles/train.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/vehicles/train.dm b/code/modules/vehicles/train.dm index b7e70f039f..d8e372d818 100644 --- a/code/modules/vehicles/train.dm +++ b/code/modules/vehicles/train.dm @@ -62,7 +62,8 @@ // Vehicle procs //------------------------------------------- /obj/vehicle/train/explode() - tow.unattach() + if (tow) + tow.unattach() unattach() ..()