diff --git a/src/ObjWriting/Game/IW4/Menu/MenuDumperIW4.cpp b/src/ObjWriting/Game/IW4/Menu/MenuDumperIW4.cpp index 3007b2a0..f6d53566 100644 --- a/src/ObjWriting/Game/IW4/Menu/MenuDumperIW4.cpp +++ b/src/ObjWriting/Game/IW4/Menu/MenuDumperIW4.cpp @@ -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 << "()"; diff --git a/src/ObjWriting/Game/IW5/Menu/MenuDumperIW5.cpp b/src/ObjWriting/Game/IW5/Menu/MenuDumperIW5.cpp index fca64e5c..4eb52115 100644 --- a/src/ObjWriting/Game/IW5/Menu/MenuDumperIW5.cpp +++ b/src/ObjWriting/Game/IW5/Menu/MenuDumperIW5.cpp @@ -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"; }