Goddamnit pjb why do I have to do this

This commit is contained in:
clusterfack
2016-05-31 21:47:11 -05:00
parent 1f8ecb7b2a
commit 26e34ab538

View File

@@ -1470,7 +1470,7 @@ var/list/slot_equipment_priority = list( \
/mob/proc/update_canmove()
if (locked_to)
var/datum/locking_category/category = locked_to.locked_atoms[src]
if (category.flags ^ LOCKED_CAN_LIE_AND_STAND)
if (category && category.flags ^ LOCKED_CAN_LIE_AND_STAND)
canmove = 0
lying = (category.flags & LOCKED_SHOULD_LIE) ? TRUE : FALSE //A lying value that !=1 will break this