From 823003ba9b16b594a7f61f259bcf148d58bc3914 Mon Sep 17 00:00:00 2001 From: Alexandr Arutjunov Date: Sun, 2 Oct 2016 02:28:06 +0300 Subject: [PATCH] [F] Fixing checking rule --- code/StandardShapes.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/StandardShapes.cpp b/code/StandardShapes.cpp index 943b739..8b0b323 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(); -- 2.7.4