bool Model::read(std::ifstream& input){
unsignedint count = 0;
READ(amtVertices); // READ = if not good read, return false
count = amtVertices / (sizeof(Vertex)/sizeof(float));
vertices = new (std::nothrow) Vertex[count];
if (!vertices){ std::cout << "Could not create vertices: "; returnfalse; }
input.read(reinterpret_cast<char*>(vertices), sizeof(vertices[0]) * count);
READ(amtNormals);
count = amtNormals / (sizeof(Vertex)/sizeof(float));
normals = new (std::nothrow) Vertex[count];
if (!normals){ std::cout << "Could not create normals: "; returnfalse; }
input.read(reinterpret_cast<char*>(normals), sizeof(normals[0]) * count);
report(); // Prints contents of model to file
//Rest of function
Which works fine when compiled with MinGW. When I use it in VS2010, my "normals" starts to be junk data about 80 values in. Can't for the life of me figure it out... Same code, same file...