[MIRROR] Fixes species being referenced instead of copied when cloning (#2859)

* Fixes species being referenced instead of copied when cloning

* fixes

* wew
This commit is contained in:
CitadelStationBot
2017-09-23 00:34:09 -05:00
committed by Poojawa
parent 518e04a653
commit 51d8182b13
5 changed files with 24 additions and 9 deletions
+4 -2
View File
@@ -235,7 +235,9 @@
flavor_text = dna.features["flavor_text"] //Update the flavor_text to use new dna text
if(mrace)
set_species(mrace, icon_update=0)
var/datum/species/newrace = new mrace.type
newrace.copy_properties_from(mrace)
set_species(newrace, icon_update=0)
if(newreal_name)
real_name = newreal_name
@@ -396,4 +398,4 @@
value = values
return value
/////////////////////////// DNA HELPER-PROCS
/////////////////////////// DNA HELPER-PROCS