From af0ab6fc5c0d9899b426dbe17ff02a9dfd99270b 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 228deaff652..400dea59f49 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() ..()