Fixes a runtime caused by an improperly affected variable. (#52628)

* Fixes a runtime caused by an improperly affected variable.

* Updated iscleanable()

* Update code/__DEFINES/is_helpers.dm

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
This commit is contained in:
KathyRyals
2020-08-01 13:51:15 -04:00
committed by SkyratBot
co-authored by Kyle Spier-Swenson
parent 0fe20fe387
commit 7af74a91ac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list(
#define ismecha(A) (istype(A, /obj/mecha))
#define ismopable(A) (A.layer <= HIGH_SIGIL_LAYER) //If something can be cleaned by floor-cleaning devices such as mops or clean bots
#define ismopable(A) (A && (A.layer <= HIGH_SIGIL_LAYER)) //If something can be cleaned by floor-cleaning devices such as mops or clean bots
#define isorgan(A) (istype(A, /obj/item/organ))
@@ -1072,7 +1072,7 @@
if(reac_volume >= 1)
T.wash(clean_types)
for(var/am in T)
var/atom/movable/movable_content
var/atom/movable/movable_content = am
if(ismopable(movable_content)) // Mopables will be cleaned anyways by the turf wash
continue
movable_content.wash(clean_types)