Fixed a runtime error with the filling cabinet

This commit is contained in:
Albert Iordache
2012-01-31 10:13:02 +02:00
parent 4d6a94dbab
commit 888730e196

View File

@@ -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