Skip to content

Commit 40caaa6

Browse files
committed
logic fix (i hope)
1 parent dae1603 commit 40caaa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/modules/projectiles/guns/medbeam.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
/obj/item/gun/medbeam/proc/los_check(atom/movable/user, mob/target)
8787
var/turf/user_turf = user.loc
8888
var/datum/beam/current_beam = locateUID(beam_UID)
89+
if(QDELETED(current_beam))
90+
return FALSE
8991
if(mounted)
9092
user_turf = get_turf(user)
9193
else if(!istype(user_turf))

0 commit comments

Comments
 (0)