Don't write broken procedure difinition for imported procedures (closes #10)

This commit is contained in:
phobos2077
2023-07-12 10:00:51 +02:00
parent aae49a745c
commit 79c5f248fd
+6 -1
View File
@@ -303,8 +303,13 @@ void CFalloutScript::StoreDeclarations()
}
// Empty procedure
if (m_ProcTable.GetSizeOfProc(i) == 0 && (m_ProcTable[i].m_ulType & P_IMPORT) == 0)
if (m_ProcTable.GetSizeOfProc(i) == 0)
{
if ((m_ProcTable[i].m_ulType & P_IMPORT) != 0)
{
continue;
}
g_ofstream << "/*******************************************************" << std::endl
<< "* Found Procedure without body. *" << std::endl
<< "* *" << std::endl;