From 1ca05bbddeff77dd6455d89080a4e7a30cfd70ad Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sun, 26 Nov 2023 05:25:42 -0500 Subject: [PATCH] Small important changes --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 8a479002..58c8e2a1 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -42,7 +42,7 @@ bool CB3DJSONMeshFileLoader::isALoadableFileExtension( return core::hasFileExtension(fileName, "json"); } -IAnimatedMesh* parseModel(json model) { +IAnimatedMesh* parseModel(json data) { return nullptr; @@ -65,6 +65,7 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) { // Now we read that dang JSON. file->read(buffer, file->getSize()); + // We have to clone this or it segfaults. I have no idea why. char* clone = strdup(buffer); // Dereference then borrow it.