Fixes two runtimes

Related to issue #6351
Fixes facehuggers checking oreboxes for stat.
Fixes monkeys dropping HUDs runtime.
This commit is contained in:
tkdrg
2014-12-14 11:07:39 -03:00
parent 7befddf0a2
commit abe866f2d0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
H.add_hud_to(user)
/obj/item/clothing/glasses/hud/dropped(mob/living/carbon/human/user)
if(user.glasses == src)
if(istype(user) && user.glasses == src)
var/datum/atom_hud/H = huds[hud_type]
H.remove_hud_from(user)
@@ -228,7 +228,7 @@ var/const/MAX_ACTIVE_TIME = 400
return
/proc/CanHug(var/mob/M)
if(!M)
if(!istype(M))
return 0
if(M.stat == DEAD)
return 0