Add missing parenthesis for custom functions when dumping menus

This commit is contained in:
Jan 2023-08-25 00:38:35 +02:00
parent 4829a4206b
commit cd5a5c2898
2 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ void MenuDumper::WriteStatementOperator(const Statement_s* statement, size_t& cu
}
}
void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, size_t currentPos) const
void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, const size_t currentPos) const
{
const auto& operand = statement->entries[currentPos].data.operand;
@ -160,7 +160,7 @@ void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, siz
}
if (functionIndex >= 0)
m_stream << "FUNC_" << functionIndex;
m_stream << "FUNC_" << functionIndex << "()";
else
m_stream << "INVALID_FUNC";
m_stream << "()";

View File

@ -137,7 +137,7 @@ void MenuDumper::WriteStatementOperator(const Statement_s* statement, size_t& cu
}
}
void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, size_t currentPos) const
void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, const size_t currentPos) const
{
const auto& operand = statement->entries[currentPos].data.operand;
@ -160,7 +160,7 @@ void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, siz
}
if (functionIndex >= 0)
m_stream << "FUNC_" << functionIndex;
m_stream << "FUNC_" << functionIndex << "()";
else
m_stream << "INVALID_FUNC";
}