Fixes damp rag runtime (#93192)

## About The Pull Request

<img width="564" height="75" alt="image"
src="https://github.com/user-attachments/assets/539de6b9-4c4e-40cd-9ebf-d891db25ede2"
/>

Seems to be caused by add_blood_dna() being passed an empty list (which
happens by default with rags).

<details><summary> see here </summary>

<img width="591" height="518" alt="image"
src="https://github.com/user-attachments/assets/9c1e6863-8707-4768-87ac-a2e0874fd34d"
/>

`all_blood_dna` is not null but an empty list to start, so we need our
proc to be able to handle such cases

</details>

So anytime you clean something that doesn't have blood dna you will get
this runtime.

## Why It's Good For The Game

If someone is cleaning these really can build up. Less runtime log
pollution so we notice important issues.

## Changelog

N/A
This commit is contained in:
Bloop
2025-09-30 16:28:07 -04:00
committed by GitHub
parent 71356156f4
commit 415b86aefa
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -112,7 +112,7 @@
if (QDELETED(src))
return
. = ..()
if (isnull(blood_DNA_to_add))
if (isnull(blood_DNA_to_add) || !length(blood_DNA_to_add))
return .
if (!islist(blood_DNA_to_add))
CRASH("add_blood_DNA on [src] ([type]) has been passed a non-list blood_DNA_to_add ([blood_DNA_to_add])!")