From 91a4bc356e9e7aaf2fc5c4ed00572a736bb472cf Mon Sep 17 00:00:00 2001 From: GinjaNinja32 Date: Sun, 21 Sep 2014 16:04:22 +0100 Subject: [PATCH] Fix for non-cancelable book removal from bookshelves --- code/modules/library/lib_items.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index ffb4915d788..e8374d56522 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -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