Fix shadowing fix that caused logic bug and different shadowing

This commit is contained in:
Jon Evans 2021-02-27 20:01:14 -05:00
parent 77ed62f506
commit cd7a2cd807
1 changed files with 6 additions and 6 deletions

View File

@ -207,10 +207,10 @@ static void insideCourtyard( LIBEVAL::CONTEXT* aCtx, void* self )
if( i != board->m_InsideCourtyardCache.end() )
return i->second;
bool insideFootprint = realInsideFootprint( footprint );
bool isInside = realInsideFootprint( footprint );
board->m_InsideCourtyardCache[ key ] = result;
return insideFootprint;
board->m_InsideCourtyardCache[ key ] = isInside;
return isInside;
};
if( arg->AsString() == "A" )
@ -388,10 +388,10 @@ static void insideArea( LIBEVAL::CONTEXT* aCtx, void* self )
if( i != board->m_InsideAreaCache.end() )
return i->second;
bool result = realInsideZone( zone );
bool isInside = realInsideZone( zone );
board->m_InsideAreaCache[ key ] = result;
return result;
board->m_InsideAreaCache[ key ] = isInside;
return isInside;
};
if( arg->AsString() == "A" )