Browse Source

Fix prev commit

Panagiotis Christopoulos Charitos 13 years ago
parent
commit
06031b3555
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/anki/resource/Mesh.h

+ 2 - 1
include/anki/resource/Mesh.h

@@ -55,7 +55,8 @@ public:
 
 
 	U32 getIndicesCount() const
 	U32 getIndicesCount() const
 	{
 	{
-		return meshProtected.indicesCount;
+		ANKI_ASSERT(meshProtected.subMeshes.size() > 0);
+		return meshProtected.subMeshes[0].indicesCount;
 	}
 	}
 
 
 	const Obb& getBoundingShape() const
 	const Obb& getBoundingShape() const