Fixes runtimes caused by persistent scars trying to save bodyswapped people's scars (#94504)

## About The Pull Request

Original slot index is preserved upon mind transferring between bodies,
but original character isn't, so this could runtime if you bodyswapped,
lived until roundend and had persistent scars on.

## Changelog
🆑
fix: Fixed runtimes caused by persistent scars trying to save
bodyswapped people's scars
/🆑
This commit is contained in:
SmArtKar
2025-12-16 21:54:04 -05:00
committed by GitHub
parent f0cfc05dd7
commit 739bd4b76a
@@ -5,7 +5,7 @@
if(!istype(ending_human) || !ending_human.mind?.original_character_slot_index || !ending_human.client?.prefs.read_preference(/datum/preference/toggle/persistent_scars))
continue
var/mob/living/carbon/human/original_human = ending_human.mind.original_character.resolve()
var/mob/living/carbon/human/original_human = ending_human.mind.original_character?.resolve()
if(!original_human)
continue