From 64b4abca4bb114ef4b257aa04a7ca71f56b567f1 Mon Sep 17 00:00:00 2001 From: Maxim Nikitin Date: Fri, 2 Oct 2020 12:05:05 -0400 Subject: [PATCH] oopsie --- .../mob/living/carbon/human/species_types/jellypeople.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm index c9add21b3d..4378d4d2eb 100644 --- a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm @@ -242,7 +242,8 @@ H.mob_transforming = FALSE -/datum/action/innate/split_body/proc/make_dupe() +/datum/action/innate/split_body/proc/make_ +() var/mob/living/carbon/human/H = owner CHECK_DNA_AND_SPECIES(H) @@ -278,7 +279,7 @@ // transfer the swap-body ui if it's open var/datum/action/innate/swap_body/this_swap = origin_datum.swap_body var/datum/action/innate/swap_body/other_swap = spare_datum.swap_body - var/datum/tgui/ui = SStgui.get_open_ui(old, this_swap, "main") || SStgui.get_open_ui(dupe, this_swap, "main") + var/datum/tgui/ui = SStgui.get_open_ui(H, this_swap, "main") || SStgui.get_open_ui(spare, this_swap, "main") if(ui) SStgui.on_close(ui) // basically removes it from lists is all this proc does. ui.user = spare