I know embarrasingly little about cores but from the code the GetPartType call is failing when given the sucessorPartID as an argument. So PartID 238 does not have a Type? It is okay for a Part not to have a successor which has a type, but not if the part in question is an expendable type.
Hopefully these numbers translate to something that is meaningfull outside of the code
mdata is a structure with the following values
Code: Select all
amount 15
partID 86
succesorPartID 238
launchCount 1
expendabletypeID 26
inventoryLineMDL "invchaff"
Code: Select all
if (m_pexpendabletype)
{
m_equipmenttype = m_pexpendabletype->GetEquipmentType();
m_pexpendabletype->AddRef();
m_launcherDef = m_pexpendabletype->GetLauncherDef();
if (m_data.successorPartID != NA)
{
m_pptSuccessor = pMission->GetPartType(m_data.successorPartID);
assert (m_pptSuccessor); <---- THIS IS WHERE IT FAILS
}
pMission->AddPartType(this);
}
Dog