diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index f43378f7..4ff74102 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -633,6 +633,9 @@ std::tuple CB3DJSONMeshFileLoader::parseJSONFile(io::IReadFil } IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) { + + // Create the initial model. + AnimatedMesh = new scene::CSkinnedMesh(); // Less than zero? What is this file a black hole? if (file->getSize() <= 0) {