X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGraphic%2FModels.cpp;h=f58962c2f4ab5e3c5f57aea22b7f49f1f19abe26;hb=51a0860281c8978f5404c730eb809fb455d99aea;hp=4120864b74146e015f0b4830462cfc40e908a759;hpb=30f342b219632ea3e777388a9530340baf4d7aac;p=lugaru.git diff --git a/Source/Graphic/Models.cpp b/Source/Graphic/Models.cpp index 4120864..f58962c 100644 --- a/Source/Graphic/Models.cpp +++ b/Source/Graphic/Models.cpp @@ -399,7 +399,7 @@ void Model::UpdateVertexArrayNoTexNoNorm() } } -bool Model::loadnotex(const std::string& filename ) +bool Model::loadnotex(const std::string& filename) { FILE *tfile; long i; @@ -463,7 +463,7 @@ bool Model::loadnotex(const std::string& filename ) } -bool Model::load(const std::string& filename, bool texture ) +bool Model::load(const std::string& filename, bool texture) { FILE *tfile; long i; @@ -1429,20 +1429,17 @@ void Model::deallocate() } Model::Model() + : vertexNum(0), TriangleNum(0), + hastexture(0), + type(0), oldtype(0), + possible(0), + owner(0), + vertex(0), + normals(0), + facenormals(0), + Triangles(0), + vArray(0) { - vertexNum = 0, TriangleNum = 0; - hastexture = 0; - - type = 0, oldtype = 0; - - possible = 0; - owner = 0; - vertex = 0; - normals = 0; - facenormals = 0; - Triangles = 0; - vArray = 0; - memset(&modelTexture, 0, sizeof(modelTexture)); numpossible = 0; color = 0; @@ -1464,4 +1461,3 @@ Model::Model() type = nothing; } -