Skip to content

Commit

Permalink
Fixes runtime when someone finishes off a mob that qdeletes on death …
Browse files Browse the repository at this point in the history
…with a knockback weapon (#2359)

boop
  • Loading branch information
Gboster-0 authored Aug 5, 2024
1 parent 057dfef commit 2ceb7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/items/ego_weapons/_ego_weapon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if(charge && attack_charge_gain)
HandleCharge(1, target)

if(target.anchored || !knockback) // lets not throw machines around
if(target.anchored || !knockback || QDELETED(target)) // lets not throw machines around
return TRUE

var/atom/throw_target = get_edge_target_turf(target, user.dir)
Expand Down

0 comments on commit 2ceb7d1

Please sign in to comment.