Maybe if we created the memory ptr it wouldn't crash

This commit is contained in:
jordan4ibanez 2023-11-28 09:26:49 -05:00
parent f722ffb3c8
commit 124c54485d
1 changed files with 3 additions and 0 deletions

View File

@ -633,6 +633,9 @@ std::tuple<bool, std::string> 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) {