From d62d0e496cb5767ea115bbb1d7204e014c2109fa Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Tue, 12 Mar 2024 02:22:44 +0100 Subject: [PATCH] Fixes a runtime with the crew manifest. (#81926) ## About The Pull Request `/datum/dna/stored` is a specific subtype of `/datum/dna` that ignores mutations. Wonderful for crew records on top of brain mobs tbf. The crew manifest now uses it. ## Why It's Good For The Game This will fix #81842. ## Changelog N/A --- code/datums/dna.dm | 2 +- code/datums/records/manifest.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/dna.dm b/code/datums/dna.dm index d67cc925baf..03210454017 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -461,7 +461,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) update_dna_identity() -/datum/dna/stored //subtype used by brain mob's stored_dna +/datum/dna/stored //subtype used by brain mob's stored_dna and the crew manifest /datum/dna/stored/add_mutation(mutation_name) //no mutation changes on stored dna. return diff --git a/code/datums/records/manifest.dm b/code/datums/records/manifest.dm index 557cbbdb9c7..146f0b85845 100644 --- a/code/datums/records/manifest.dm +++ b/code/datums/records/manifest.dm @@ -113,7 +113,7 @@ GLOBAL_DATUM_INIT(manifest, /datum/manifest, new) person_gender = "Male" if(person.gender == "female") person_gender = "Female" - var/datum/dna/record_dna = new() + var/datum/dna/stored/record_dna = new() person.dna.copy_dna(record_dna) var/datum/record/locked/lockfile = new(