Runtime Fixes (#1456)

Fixes a variety of simple runtime errors
This commit is contained in:
NanakoAC
2017-01-08 21:16:38 +00:00
committed by skull132
parent f0878244b9
commit b96f954762
6 changed files with 15 additions and 7 deletions
+2 -1
View File
@@ -131,8 +131,9 @@ var/list/slot_equipment_priority = list( \
//If both fail it drops it on the floor and returns 0.
//This is probably the main one you need to know :)
/mob/proc/put_in_hands(var/obj/item/W)
if(!W)
if(!W || !istype(W))
return 0
W.forceMove(get_turf(src))
W.layer = initial(W.layer)
W.dropped()