Skip to content

Commit

Permalink
add inrange check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Feb 16, 2024
1 parent b5f0e69 commit 18cfc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/vehicles/multitile/multitile_hardpoints.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
hps += H

var/chosen_hp = tgui_input_list(usr, "Select a hardpoint to remove", "Hardpoint Removal", (hps + "Cancel"))
if(chosen_hp == "Cancel" || !chosen_hp)
if(chosen_hp == "Cancel" || !chosen_hp || !in_range(src, user))
return

var/obj/item/hardpoint/old = chosen_hp
Expand Down

0 comments on commit 18cfc9a

Please sign in to comment.