When I tried to build recent SVN revisions, I got a build error in ShipDesign.h at line 715.
The affected code section is:
Code:
// template implementations
template <class Archive>
void PartType::serialize(Archive& ar, const unsigned int version)
{
ar & BOOST_SERIALIZATION_NVP(m_name)
& BOOST_SERIALIZATION_NVP(m_description)
& BOOST_SERIALIZATION_NVP(m_class)
& BOOST_SERIALIZATION_NVP(m_stats)
& BOOST_SERIALIZATION_NVP(m_production_cost)
& BOOST_SERIALIZATION_NVP(m_production_time)
& BOOST_SERIALIZATION_NVP(m_mountable_slot_types)
& BOOST_SERIALIZATION_NVP(m_location)
& BOOST_SERIALIZATION_NVP(m_effects)
& BOOST_SERIALIZATION_NVP(m_graphic);
}
The error occurs in this line:
Code:
& BOOST_SERIALIZATION_NVP(m_icon);
The error message thrown is:
Code:
'm_graphic' was not declared in this scope
I found out that there is no "m_graphic" in PartType, but "m_icon". I guess "m_graphic" was replaced with "m_icon" in commit 4642, but the serialization code wasn't modified accordingly. When I replaced "m_graphic" with "m_icon" in the code section above, FO build successfully.