Browse Source

Fehler beim laden von 3d Modellen behoben

Kolja Strohm 4 years ago
parent
commit
ead0452617
1 changed files with 1 additions and 1 deletions
  1. 1 1
      M3Datei.cpp

+ 1 - 1
M3Datei.cpp

@@ -395,7 +395,7 @@ Model3DData *M3Datei::ladeModel( const char *name ) const
             Polygon3D *p = new Polygon3D();
             d.lese( (char *)& p->indexAnz, 4 );
             p->indexList = new int[ p->indexAnz ];
-            d.lese( (char *)p->indexList, pAnz * 4 );
+            d.lese( (char *)p->indexList, p->indexAnz * 4 );
             model->addPolygon( p );
         }
         float factor;