Browse Source

Fix for RectF::intersectTriangle()

Reported in this issue:
https://github.com/GarageGames/Torque3D/issues/512
DavidWyand-GG 12 years ago
parent
commit
fc51f9767a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/math/mRect.h

+ 1 - 1
Engine/source/math/mRect.h

@@ -405,7 +405,7 @@ inline bool RectF::intersectTriangle(const Point2F &a, const Point2F &b, const P
    // 3 point plus 12 edge tests.
 
    // Check each triangle point to see if it's in us.
-   if(contains(a) || contains(b) || contains(b))
+   if(contains(a) || contains(b) || contains(c))
       return true;
 
    // Check a-b against the rect.