mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user