Small important changes

This commit is contained in:
jordan4ibanez 2023-11-26 05:25:42 -05:00
parent e2e0e3d1c4
commit 1ca05bbdde

View File

@ -42,7 +42,7 @@ bool CB3DJSONMeshFileLoader::isALoadableFileExtension(
return core::hasFileExtension(fileName, "json"); return core::hasFileExtension(fileName, "json");
} }
IAnimatedMesh* parseModel(json model) { IAnimatedMesh* parseModel(json data) {
return nullptr; return nullptr;
@ -65,6 +65,7 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
// Now we read that dang JSON. // Now we read that dang JSON.
file->read(buffer, file->getSize()); file->read(buffer, file->getSize());
// We have to clone this or it segfaults. I have no idea why.
char* clone = strdup(buffer); char* clone = strdup(buffer);
// Dereference then borrow it. // Dereference then borrow it.