mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Fixed a runtime error with the filling cabinet
This commit is contained in:
@@ -19,5 +19,5 @@
|
|||||||
user << "The [src] is empty."
|
user << "The [src] is empty."
|
||||||
return
|
return
|
||||||
var/obj/item/weapon/paper/P = input(user,"Choose a sheet to take out.","[src]", "Cancel") as null|obj in src.contents
|
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
|
P.loc = user.loc
|
||||||
Reference in New Issue
Block a user