From daf2383b187a27129acc02f8fae4ca5a7d106de2 Mon Sep 17 00:00:00 2001 From: Birdtalon Date: Sun, 26 Nov 2023 20:13:44 +0000 Subject: [PATCH] Lesser drone CRASH hotfix (#5037) # About the pull request Fixes a `CRASH()` when the lesser drone gets gibbed... # Explain why it's good for the game # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: Fix lesser drone crash on getting gibbed. /:cl: --- code/modules/mob/living/carbon/xenomorph/castes/lesser_drone.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/xenomorph/castes/lesser_drone.dm b/code/modules/mob/living/carbon/xenomorph/castes/lesser_drone.dm index 3eb11d155c74..9ca4cdc52474 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/lesser_drone.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/lesser_drone.dm @@ -98,7 +98,7 @@ /mob/living/carbon/xenomorph/lesser_drone/ghostize(can_reenter_corpse = FALSE, aghosted = FALSE) . = ..() - if(. && !aghosted) + if(. && !aghosted && !QDELETED(src)) gib() /mob/living/carbon/xenomorph/lesser_drone/handle_ghost_message()