diff --git a/code/StandardShapes.cpp b/code/StandardShapes.cpp index 943b73920..8b0b32336 100644 --- a/code/StandardShapes.cpp +++ b/code/StandardShapes.cpp @@ -121,8 +121,7 @@ void Subdivide(std::vector& positions) aiMesh* StandardShapes::MakeMesh(const std::vector& positions, unsigned int numIndices) { - if (positions.size() & numIndices || positions.empty() || !numIndices) - return NULL; + if (positions.empty() || !numIndices) return NULL; // Determine which kinds of primitives the mesh consists of aiMesh* out = new aiMesh();