CvPlayerTechs::Uninit()
- Defined in
- CvTechClasses.cpp, line 669
- Class
- CvPlayerTechs
- Hook name
CivHooks::CvPlayerTechs_Uninit- Overrides
- CvFlavorRecipient::Uninit()
Hooks
static bool BeforeCvPlayerTechs_Uninit(CvPlayerTechs* self);static void AfterCvPlayerTechs_Uninit(CvPlayerTechs* self);static void ReplaceCvPlayerTechs_Uninit(void (*original)(CvPlayerTechs*), CvPlayerTechs* self);CivRegisterBefore<CivHooks::CvPlayerTechs_Uninit>(host, &BeforeCvPlayerTechs_Uninit);CivRegisterAfter<CivHooks::CvPlayerTechs_Uninit>(host, &AfterCvPlayerTechs_Uninit);CivRegisterReplace<CivHooks::CvPlayerTechs_Uninit>(host, &ReplaceCvPlayerTechs_Uninit);
Code
668/// Deallocate memory created in initialize669void CvPlayerTechs::Uninit()670{671 // Uninit base class672 CvFlavorRecipient::Uninit();673674 SAFE_DELETE_ARRAY(m_pabResearchingTech);675 SAFE_DELETE_ARRAY(m_piCivTechPriority);676 SAFE_DELETE_ARRAY(m_piLocaleTechPriority);677 SAFE_DELETE_ARRAY(m_peLocaleTechResources);678 SAFE_DELETE_ARRAY(m_peCivTechUniqueBuildings);679 SAFE_DELETE_ARRAY(m_peCivTechUniqueUnits);680 SAFE_DELETE_ARRAY(m_peCivTechUniqueImprovements);681 SAFE_DELETE(m_pTechAI);682}
Calls
- CvFlavorRecipient::Uninit()
SAFE_DELETESAFE_DELETE_ARRAYSAFE_DELETE_ARRAYSAFE_DELETE_ARRAYSAFE_DELETE_ARRAYSAFE_DELETE_ARRAYSAFE_DELETE_ARRAY