Fix for non-cancelable book removal from bookshelves

This commit is contained in:
GinjaNinja32
2014-09-21 16:04:22 +01:00
parent 77d45e8b4c
commit 91a4bc356e

View File

@@ -41,7 +41,7 @@
/obj/structure/bookcase/attack_hand(var/mob/user as mob)
if(contents.len)
var/obj/item/weapon/book/choice = input("Which book would you like to remove from the shelf?") in contents as obj|null
var/obj/item/weapon/book/choice = input("Which book would you like to remove from the shelf?") as null|obj in contents
if(choice)
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
return