Fix IW4 menu dumper not dumping custom functions properly

This commit is contained in:
Jan 2024-01-06 13:41:02 +01:00
parent 15bec9c356
commit 6eca361517
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
2 changed files with 3 additions and 2 deletions

View File

@ -158,7 +158,7 @@ void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, con
} }
if (functionIndex >= 0) if (functionIndex >= 0)
m_stream << "FUNC_" << functionIndex << "()"; m_stream << "FUNC_" << functionIndex;
else else
m_stream << "INVALID_FUNC"; m_stream << "INVALID_FUNC";
m_stream << "()"; m_stream << "()";

View File

@ -158,9 +158,10 @@ void MenuDumper::WriteStatementOperandFunction(const Statement_s* statement, con
} }
if (functionIndex >= 0) if (functionIndex >= 0)
m_stream << "FUNC_" << functionIndex << "()"; m_stream << "FUNC_" << functionIndex;
else else
m_stream << "INVALID_FUNC"; m_stream << "INVALID_FUNC";
m_stream << "()";
} }
else else
{ {