From 888730e196106e9deb99471816bff069c652d087 Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Tue, 31 Jan 2012 10:13:02 +0200 Subject: [PATCH] Fixed a runtime error with the filling cabinet --- code/WorkInProgress/Ported/Bureaucracy/filing.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/WorkInProgress/Ported/Bureaucracy/filing.dm b/code/WorkInProgress/Ported/Bureaucracy/filing.dm index 5f6363dadc6..a742371e33e 100644 --- a/code/WorkInProgress/Ported/Bureaucracy/filing.dm +++ b/code/WorkInProgress/Ported/Bureaucracy/filing.dm @@ -19,5 +19,5 @@ user << "The [src] is empty." return var/obj/item/weapon/paper/P = input(user,"Choose a sheet to take out.","[src]", "Cancel") as null|obj in src.contents - if(in_range(src,user)) + if(!isnull(P) && in_range(src,user)) P.loc = user.loc \ No newline at end of file