From f9d80e12ce8d35676d0cf719b30dba98c94fb252 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Fri, 17 Aug 2012 14:51:27 +0000 Subject: [PATCH] - Fixes issue 811. A warning was sent if there weren't enough cable pieces left, but the proc did not return at that point. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4477 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/stacks/glass.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/objects/stacks/glass.dm b/code/game/objects/stacks/glass.dm index 4595841929..c52585376a 100644 --- a/code/game/objects/stacks/glass.dm +++ b/code/game/objects/stacks/glass.dm @@ -17,6 +17,7 @@ SHARDS var/obj/item/weapon/cable_coil/CC = W if(CC.amount < 5) user << "\b There is not enough wire in this coil. You need 5 lengths." + return CC.use(5) src.use(1) user << "\blue You attach wire to the [name]."