dungeon_crawler
diff prototype/src/tile.cc @ 37:84a56fb24850
fuck that uninitialized variable
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 29 Aug 2012 01:04:01 +0300 |
parents | d0e93b4d9ec9 |
children | 862461b686f4 |
line diff
1.1 --- a/prototype/src/tile.cc Tue Aug 28 06:36:20 2012 +0300 1.2 +++ b/prototype/src/tile.cc Wed Aug 29 01:04:01 2012 +0300 1.3 @@ -119,6 +119,11 @@ 1.4 } 1.5 1.6 for(int i=0; i<(int)scn->mNumMeshes; i++) { 1.7 + // ignore any lines or other crap 1.8 + if(scn->mMeshes[i]->mPrimitiveTypes != aiPrimitiveType_TRIANGLE) { 1.9 + continue; 1.10 + } 1.11 + 1.12 Mesh *mesh = new Mesh; 1.13 if(!mesh->create(scn, scn->mMeshes[i])) { 1.14 delete mesh;