diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 3dfaadb4626..b4c4a23d769 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -172,7 +172,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) var/list/sources_to_add = sources.Copy() //make sure not to modify the original if it's stored in a variable outside this proc if(!actual_mutation) if(istype(mutation_to_add, /datum/mutation)) - var/datum/mutation/mutation_instance + var/datum/mutation/mutation_instance = mutation_to_add actual_mutation = mutation_instance.make_copy() else actual_mutation = new mutation_to_add @@ -229,7 +229,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) /datum/dna/proc/remove_mutation_group(list/group, sources = GLOB.standard_mutation_sources) if(!group) return - for(var/datum/mutation/mutation in group) + for(var/mutation in group) remove_mutation(mutation, sources) /datum/dna/proc/generate_unique_identity() diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm index c2ce97d46a4..2ab1b8fb0b3 100644 --- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -1188,7 +1188,7 @@ . = ..() affected_mob.remove_status_effect(/datum/status_effect/jitter) if(affected_mob.has_dna()) - affected_mob.dna.remove_mutation_group(affected_mob.dna.mutations - /datum/mutation/race, GLOB.standard_mutation_sources) + affected_mob.dna.remove_mutation_group(affected_mob.dna.mutations - affected_mob.dna.get_mutation(/datum/mutation/race), GLOB.standard_mutation_sources) affected_mob.dna.scrambled = FALSE /datum/reagent/medicine/antihol