mirror of https://github.com/minetest/irrlicht.git
Maybe if we created the memory ptr it wouldn't crash
This commit is contained in:
parent
f722ffb3c8
commit
124c54485d
|
@ -633,6 +633,9 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::parseJSONFile(io::IReadFil
|
||||||
}
|
}
|
||||||
|
|
||||||
IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
||||||
|
|
||||||
|
// Create the initial model.
|
||||||
|
AnimatedMesh = new scene::CSkinnedMesh();
|
||||||
|
|
||||||
// Less than zero? What is this file a black hole?
|
// Less than zero? What is this file a black hole?
|
||||||
if (file->getSize() <= 0) {
|
if (file->getSize() <= 0) {
|
||||||
|
|
Loading…
Reference in New Issue