Skip to content

Commit

Permalink
Update Corridor.h
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent 4fe071d commit 8243c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Corridor.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace dung
{
auto local_pos = world_pos - bb.pos();
auto idx = local_pos.r * bb.c_len + local_pos.c;
if (math::in_range(idx, 0, static_cast<int>(fog_of_war.size()), Range::ClosedOpen))
if (math::in_range<int>(idx, 0, static_cast<int>(fog_of_war.size()), Range::ClosedOpen))
return fog_of_war[idx];
return true;
}
Expand Down

0 comments on commit 8243c60

Please sign in to comment.