Skip to content

Commit

Permalink
Avoid name shadowing in lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Nov 9, 2023
1 parent 2f41a41 commit e7c324f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/match/handlers/UnitVisibilityHandler.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func _recalculate_unit_visibility(unit, revealed_units = null):
var should_be_visible = false
if revealed_units == null:
revealed_units = get_tree().get_nodes_in_group("units").filter(
func(unit): return unit.is_in_group("revealed_units")
func(a_unit): return a_unit.is_in_group("revealed_units")
)
for revealed_unit in revealed_units:
if (
Expand Down

0 comments on commit e7c324f

Please sign in to comment.