Browse Source

Remove unnecessary assert (#4911)

pull/4915/head
Andrew James 4 years ago committed by GitHub
parent
commit
c479488fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/lighting.h

2
Source/lighting.h

@ -140,8 +140,6 @@ constexpr int MaxCrawlRadius = 18;
template <typename F>
auto Crawl(unsigned radius, F function) -> invoke_result_t<decltype(function), Displacement>
{
assert(radius <= MaxCrawlRadius);
if (radius == 0)
return function(Displacement { 0, 0 });

Loading…
Cancel
Save