Skip to content

Commit

Permalink
Lesser drone CRASH hotfix (#5037)
Browse files Browse the repository at this point in the history
# 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
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: Fix lesser drone crash on getting gibbed.
/:cl:
  • Loading branch information
Birdtalon authored Nov 26, 2023
1 parent b9685e4 commit daf2383
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit daf2383

Please sign in to comment.