Adds an error for setting species post qdel (#59433)

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
This commit is contained in:
LemonInTheDark
2021-06-02 17:27:52 -07:00
committed by GitHub
co-authored by Jordan Brown
parent eb6aad9997
commit bbcbfcb4e7
+2
View File
@@ -300,6 +300,8 @@
/mob/living/carbon/set_species(datum/species/mrace, icon_update = TRUE, pref_load = FALSE)
if(QDELETED(src))
CRASH("You're trying to change your species post deletion, this is a recipe for madness")
if(mrace && has_dna())
var/datum/species/new_race
if(ispath(mrace))