From 955c63b2830d5ae5e1d0d63c85a4adb50c149c1b Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Tue, 22 Oct 2024 21:39:22 +0200 Subject: [PATCH] Overlay: Font - report unsupported parameter --- Components/Overlay/src/OgreOverlayTranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/Overlay/src/OgreOverlayTranslator.cpp b/Components/Overlay/src/OgreOverlayTranslator.cpp index 57fcb4760bf..04401cee398 100644 --- a/Components/Overlay/src/OgreOverlayTranslator.cpp +++ b/Components/Overlay/src/OgreOverlayTranslator.cpp @@ -132,7 +132,7 @@ void FontTranslator::parseAttribute(ScriptCompiler* compiler, FontPtr& pFont, else if (prop->values.empty() || !getString(prop->values.front(), &val) || !pFont->setParameter(attrib, val)) { - compiler->addError(ScriptCompiler::CE_INVALIDPARAMETERS, prop->file, prop->line); + compiler->addError(ScriptCompiler::CE_INVALIDPARAMETERS, prop->file, prop->line, attrib); } }