Fixing warnings
This commit is contained in:
@@ -98,7 +98,7 @@ std::vector<KRResource *> KRResource::LoadObj(KRContext &context, const std::str
|
||||
|
||||
// -----=====----- Populate vertexes and faces -----=====-----
|
||||
|
||||
int *pFaces = (int *)malloc(sizeof(int *) * (cFaces + 1));
|
||||
int *pFaces = (int *)malloc(sizeof(int) * (cFaces + 1));
|
||||
assert(pFaces != NULL);
|
||||
|
||||
std::vector<KRVector3> indexed_vertices;
|
||||
@@ -337,4 +337,4 @@ std::vector<KRResource *> KRResource::LoadObj(KRContext &context, const std::str
|
||||
}
|
||||
|
||||
return resources;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user