From 58e058143ce97a17a0e13fe1c1c96d1343f5ed8c Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 28 Nov 2023 05:10:07 -0500 Subject: [PATCH] Now inline this --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 535aeb25..a8188565 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -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!")); }