mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 23:10:26 +01:00
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) {
|
||||
|
||||
// Create the initial model.
|
||||
AnimatedMesh = new scene::CSkinnedMesh();
|
||||
|
||||
// Less than zero? What is this file a black hole?
|
||||
if (file->getSize() <= 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user