mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-04 01:00:26 +02:00
Maybe if we created the memory ptr it wouldn't crash
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user