From 7e41b72093605a25964b7cc04fa8fde4ca5f6d57 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Wed, 9 Oct 2024 16:34:01 +0200 Subject: [PATCH] Main: ScriptCompiler - pass on variables as names altough not supported, this makes the error message more clear --- OgreMain/src/OgreScriptCompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OgreMain/src/OgreScriptCompiler.cpp b/OgreMain/src/OgreScriptCompiler.cpp index d135b234262..f98589b1cff 100644 --- a/OgreMain/src/OgreScriptCompiler.cpp +++ b/OgreMain/src/OgreScriptCompiler.cpp @@ -1379,7 +1379,7 @@ namespace Ogre // Get the name // Unless the type is in the exclusion list - if(iter != temp.end() && ((*iter)->type == CNT_WORD || (*iter)->type == CNT_QUOTE) && + if(iter != temp.end() && ((*iter)->type == CNT_WORD || (*iter)->type == CNT_QUOTE || (*iter)->type == CNT_VARIABLE) && !mCompiler->isNameExcluded(*impl, mCurrent)) { impl->name = (*iter)->token;