Skip to content

Commit

Permalink
Fixes dummy preview for yautja bracers causing runtimes (#4673)
Browse files Browse the repository at this point in the history
# About the pull request

Fixes a simple runtime when the bracers are viewed off a character setup
dummy, and therefore, nullspaced
  • Loading branch information
fira authored Oct 15, 2023
1 parent 06fb75f commit 11b5f53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/cm_preds/yaut_bracers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
var/mob/living/carbon/human/human_owner = owner
var/turf/wearer_turf = get_turf(owner)
SSminimaps.remove_marker(owner)
if(!wearer_turf)
return

if(!isyautja(owner))
if(owner.stat >= DEAD)
if(human_owner.undefibbable)
Expand Down

0 comments on commit 11b5f53

Please sign in to comment.