diff --git a/Sources/Overload/OvEditor/src/OvEditor/Panels/MaterialEditor.cpp b/Sources/Overload/OvEditor/src/OvEditor/Panels/MaterialEditor.cpp index 28d2c1fa..616c5d0d 100644 --- a/Sources/Overload/OvEditor/src/OvEditor/Panels/MaterialEditor.cpp +++ b/Sources/Overload/OvEditor/src/OvEditor/Panels/MaterialEditor.cpp @@ -354,7 +354,7 @@ void OvEditor::Panels::MaterialEditor::GenerateShaderSettingsContent() { try { - auto texture = std::any_cast(*info.second); + auto& texture = std::any_cast(*info.second); GUIDrawer::DrawTexture(*m_shaderSettingsColumns, formattedType, texture); } catch (const std::bad_any_cast&)