diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 41f597a8..c7a30cc4 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -255,8 +255,9 @@ std::tuple CB3DJSONMeshFileLoader::readChunkTEXS() { // Convert Windows '\' to Posix '/'. B3DTexture.TextureName.replace('\\','/'); - println(B3DTexture.TextureName.c_str()); + } else { + if (t.contains("name") && !t["name"].is_string()) { return {false, "\"name\" in TEXS block index (" + std::to_string(index) +") is not a string."}; }