From ad0be72f8807c9e95ad5191c3fae9387f3b02c15 Mon Sep 17 00:00:00 2001 From: Head Date: Mon, 15 Oct 2012 13:32:58 +0200 Subject: [PATCH] Fixed runtime. Signed-off-by: Head --- code/game/machinery/constructable_frame.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index 701cf3fb92..3a131bc585 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -24,6 +24,9 @@ playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) user << "\blue You start to add cables to the frame." if(do_after(user, 20)) + if(!P) + user << "\blue You realize the cable coil no longer exist." + return; P:amount -= 5 if(!P:amount) del(P) user << "\blue You add cables to the frame."