Skip to content

Commit

Permalink
[18CH] Rubocop fix: don't shadow variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ollybh committed Jun 24, 2024
1 parent 2f86def commit c219e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine/game/g_18_ch/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def mountain_bonus(entity, routes)
def all_potential_upgrades(tile, tile_manifest: false, selected_company: nil)
return super unless mountain_hex?(tile)

super + [@tiles.find { |tile| tile.name == MOUNTAIN_RAILWAY_TILE }]
super + [@tiles.find { |t| t.name == MOUNTAIN_RAILWAY_TILE }]
end

def upgrades_to?(from, to, special, selected_company: nil)
Expand Down

0 comments on commit c219e1a

Please sign in to comment.