mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
allow (and discard) explicit reference on instructions that do not accept explicit references
This commit is contained in:
parent
9de2922d22
commit
697bda6371
3 changed files with 21 additions and 4 deletions
|
@ -38,7 +38,7 @@ namespace Compiler
|
|||
}
|
||||
|
||||
bool Extensions::isInstruction (int keyword, std::string& argumentType,
|
||||
bool explicitReference) const
|
||||
bool& explicitReference) const
|
||||
{
|
||||
std::map<int, Instruction>::const_iterator iter = mInstructions.find (keyword);
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace Compiler
|
|||
return false;
|
||||
|
||||
if (explicitReference && iter->second.mCodeExplicit==-1)
|
||||
return false;
|
||||
explicitReference = false;
|
||||
|
||||
argumentType = iter->second.mArguments;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue