From 75b8a38977055a6ea80382bfaccadb3cb85a040d Mon Sep 17 00:00:00 2001 From: "aranclanos@hotmail.com" Date: Mon, 7 Jan 2013 12:06:31 +0000 Subject: [PATCH] Runtime fix for inputing the number of sheets that you want to add into a protolathe, when the sheet doesn't exist. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5486 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/research/protolathe.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/research/protolathe.dm b/code/modules/research/protolathe.dm index d16d622438d..de1a92ec018 100644 --- a/code/modules/research/protolathe.dm +++ b/code/modules/research/protolathe.dm @@ -134,6 +134,8 @@ Note: Must be placed west/left of and R&D console to function. var/obj/item/stack/sheet/stack = O var/amount = round(input("How many sheets do you want to add?") as num)//No decimals + if(!O) + return if(amount < 0)//No negative numbers amount = 0 if(amount == 0)