mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 22:00:26 +01:00
Now inline this
This commit is contained in:
parent
ec907d8771
commit
58e058143c
@ -228,14 +228,12 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
||||
|
||||
// Less than zero? What is this file a black hole?
|
||||
if (file->getSize() <= 0) {
|
||||
this->cleanUp("B3D JSON severe error! File size is 0!");
|
||||
return AnimatedMesh;
|
||||
return(this->cleanUp("B3D JSON severe error! File size is 0!"));
|
||||
}
|
||||
|
||||
// Try to read this file.
|
||||
if (!this->parseJSONFile(file)) {
|
||||
this->cleanUp("B3D JSON severe error! File size is 0!");
|
||||
return AnimatedMesh;
|
||||
return(this->cleanUp("B3D JSON severe error! File size is 0!"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user