mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-06-15 02:15:21 +01:00
5fda487e43
update_dna() was calling dna.ready_dna() which internally calls ResetSE(), setting all SE blocks to rand(1,1024) (the OFF range). Any subsequent domutcheck(MUTCHK_FORCED) call would then deactivate every trait gene because all SE values read as inactive, including the morph gene itself. Replace dna.ready_dna(src) with dna.ResetUIFrom(src), which re-encodes appearance DNA from the mob's current state without touching the SE layer. Also correct the stale sync_organ_dna(dna) call to the correct no-argument form matching the proc signature. Affected call sites that triggered this bug: the morph appearance editor, change_gender, add_marking, remove_marking, change_priority_of_marking, and change_marking_color. Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>