Fix IW4 menu dumper not dumping custom functions properly

This commit is contained in:
Jan committed 2024-01-06 13:41:02 +01:00
1 parent 15bec9c356
commit 6eca361517
2 files changed
+3 -2

No files matched your search

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