Skip to content

Commit

Permalink
Main: ScriptCompiler - pass on variables as names
Browse files Browse the repository at this point in the history
altough not supported, this makes the error message more clear
  • Loading branch information
paroj committed Oct 9, 2024
1 parent 5b91bb3 commit 7e41b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/src/OgreScriptCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e41b72

Please sign in to comment.