mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-28 19:13:47 +00:00
clang catch: boxBase's getPlanePointIndex method wasn't returning values in all cases.
assertfatal doesn't do anything in release builds, so also added a failure enum.
This commit is contained in:
parent
3038e53856
commit
8d4dd14144
1 changed files with 5 additions and 3 deletions
|
|
@ -49,7 +49,8 @@ class BoxBase
|
|||
FarTopLeft,
|
||||
FarBottomLeft,
|
||||
|
||||
NUM_POINTS
|
||||
NUM_POINTS,
|
||||
InvalidPoint = NUM_POINTS
|
||||
};
|
||||
|
||||
/// Return the point index for the opposite corner of @a p.
|
||||
|
|
@ -192,8 +193,6 @@ class BoxBase
|
|||
default: AssertFatal( false, "BoxBase::getPlanePointIndex - Invalid index" );
|
||||
}
|
||||
break;
|
||||
default:
|
||||
AssertFatal( false, "BoxBase::getPlanePointIndex - Invalid plane" );
|
||||
case BottomPlane:
|
||||
switch( i )
|
||||
{
|
||||
|
|
@ -204,7 +203,10 @@ class BoxBase
|
|||
default: AssertFatal( false, "BoxBase::getPlanePointIndex - Invalid index" );
|
||||
}
|
||||
break;
|
||||
default:
|
||||
AssertFatal( false, "BoxBase::getPlanePointIndex - Invalid plane" );
|
||||
}
|
||||
return InvalidPoint;
|
||||
}
|
||||
|
||||
/// Indices for the edges of the box.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue