Skip to content

Commit

Permalink
Sentry deploy fix (#16679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Oct 17, 2024
1 parent 9b535bb commit 0bd2bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/game/objects/structures/dropship_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
var/obj/new_gun = new sentry_type(src)
deployed_turret = new_gun.loc
RegisterSignal(deployed_turret, COMSIG_OBJ_DECONSTRUCT, PROC_REF(clean_refs))
deployed_turret.set_on(FALSE)

///This cleans the deployed_turret ref when the sentry is destroyed.
/obj/structure/dropship_equipment/shuttle/sentry_holder/proc/clean_refs(atom/source, disassembled)
Expand Down

0 comments on commit 0bd2bbe

Please sign in to comment.