Showers no longer runtime when you shower with an empty hand (#42410)

held items actually contains "null" entries by default using just var/I
gets these null items and then tries to wash_obj a null causing a
runtime

Specifying /obj/item will stop the nulls being iterated
This commit is contained in:
oranges
2019-01-19 21:00:47 +13:00
committed by Tad Hardesty
parent ee047389c1
commit 55f6c039b3
+2 -1
View File
@@ -131,7 +131,8 @@
if(iscarbon(L))
var/mob/living/carbon/M = L
. = TRUE
for(var/I in M.held_items)
for(var/obj/item/I in M.held_items)
wash_obj(I)
if(M.back && wash_obj(M.back))