From 2db8c8728e60ec89d3dbc836ef0fe8194bed07e3 Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Fri, 23 Feb 2024 11:00:00 +0700 Subject: [PATCH] Missing value_or() when printing std::optional --- source/Irrlicht/CB3DMeshFileLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/CB3DMeshFileLoader.cpp b/source/Irrlicht/CB3DMeshFileLoader.cpp index 85f76a4c..59f35fda 100644 --- a/source/Irrlicht/CB3DMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DMeshFileLoader.cpp @@ -158,7 +158,7 @@ bool CB3DMeshFileLoader::readChunkNODE(CSkinnedMesh::SJoint *inJoint) for ( u32 i=1; i < B3dStack.size(); ++i ) logStr += "-"; logStr += "read ChunkNODE"; - os::Printer::log(logStr.c_str(), joint->Name.c_str(), ELL_DEBUG); + os::Printer::log(logStr.c_str(), joint->Name.value_or("").c_str(), ELL_DEBUG); #endif f32 position[3], scale[3], rotation[4];