uninitialized variables-math

This commit is contained in:
AzaezelX 2020-05-11 16:17:40 -05:00
parent 5f59ebbacc
commit ebb7ed1b78
13 changed files with 32 additions and 19 deletions

View file

@ -98,7 +98,7 @@ struct PolyhedronData
/// it defines a *clockwise* orientation for face[ 0 ]. This is important!
U32 vertex[ 2 ];
Edge() {}
Edge() { std::fill_n(face, 2, 0), std::fill_n(vertex, 0, 0); }
Edge( U32 face1, U32 face2, U32 vertex1, U32 vertex2 )
{
face[ 0 ] = face1;