diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index ec2a62d9..ac908350 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -190,14 +190,19 @@ std::tuple CB3DJSONMeshFileLoader::readChunkTEXS() { Textures.push_back(SB3dTexture()); SB3dTexture& B3DTexture = Textures.getLast(); - // This should probably be it's own function. - - - - + // This part should probably be it's own function. + //todo: look into making this it's own function. + } + } else { + // it is malformed. + //todo: return + return {false, "Malformed TEXS block. \"textures\" is not an array."} ; } + + // Everything succeeds, yay! + return {true, nullptr}; }