Skip to content

Commit

Permalink
Fix vending to a turf thats not adjacent to vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Nov 6, 2023
1 parent c05a9cb commit 30413d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ GLOBAL_LIST_EMPTY(vending_products)
if(!(user_dir in vend_dir_whitelist))
return turf
var/turf/relative_turf = get_step(user, vend_dir)
if(relative_turf.Adjacent(src))
if(relative_turf)
return relative_turf
return turf

Expand Down

0 comments on commit 30413d5

Please sign in to comment.