Fixes rugs runtiming when cleaning objects (#96463)

## About The Pull Request

all_cleaned can contain nulls if an object didnt have any blood on it

## Changelog
🆑
fix: Fixed rugs runtiming when cleaning objects
/🆑
This commit is contained in:
SmArtKar
2026-06-13 14:46:17 -07:00
committed by GitHub
parent 0302e03732
commit 89b1b064c6
@@ -130,7 +130,8 @@
if(isturf(clean_target) && !HAS_TRAIT(cleaned, TRAIT_MOPABLE))
continue
// collect dna FIRST
all_blood_dna |= all_cleaned[cleaned]
if (!isnull(all_cleaned[cleaned])) // Check if there was any blood on it, we don't want nulls in our list
all_blood_dna |= all_cleaned[cleaned]
// THEN pass on dna (though in some cases the cleaned item is being deleted)
if(blood_level > 0 && !QDELING(cleaned))
cleaned.add_blood_DNA(GET_ATOM_BLOOD_DNA(src))