From 7156b2e5a72fb20c9fe1ffcc61b61470959c108f Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 17:30:37 +0000 Subject: More of the same... --- Magic2/ModelFile3DS.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Magic2/ModelFile3DS.cpp') diff --git a/Magic2/ModelFile3DS.cpp b/Magic2/ModelFile3DS.cpp index f4381bb..db309ba 100644 --- a/Magic2/ModelFile3DS.cpp +++ b/Magic2/ModelFile3DS.cpp @@ -151,11 +151,11 @@ ModelFile3DS::Load(Model* model, double scale) float radius = 0; int v = 0; - for (m = 0; m < nmeshs && v < nverts; m++) { + for (int m = 0; m < nmeshs && v < nverts; m++) { LMesh& mesh = loader.GetMesh(m); // read vertex set: - for (i = 0; i < mesh.GetVertexCount() && v < nverts; i++) { + for (int i = 0; i < mesh.GetVertexCount() && v < nverts; i++) { vset->loc[v].x = mesh.GetVertex(i).x; vset->loc[v].y = mesh.GetVertex(i).z; vset->loc[v].z = mesh.GetVertex(i).y; @@ -182,7 +182,7 @@ ModelFile3DS::Load(Model* model, double scale) int n = 0; - for (m = 0; m < nmeshs && n < npolys; m++) { + for (int m = 0; m < nmeshs && n < npolys; m++) { LMesh& mesh = loader.GetMesh(m); // read polys: @@ -228,7 +228,7 @@ ModelFile3DS::Load(Model* model, double scale) // then assign them to cohesive segments: Segment* segment = 0; - for (n = 0; n < npolys; n++) { + for (int n = 0; n < npolys; n++) { if (segment && segment->material == polys[n].material) { segment->npolys++; } -- cgit v1.1