CvGoodyHuts::Uninit()
- Defined in
- CvGoodyHuts.cpp, line 95
- Class
- CvGoodyHuts
- Hook name
CivHooks::CvGoodyHuts_Uninit
Hooks
static bool BeforeCvGoodyHuts_Uninit();static void AfterCvGoodyHuts_Uninit();static void ReplaceCvGoodyHuts_Uninit(void (*original)());CivRegisterBefore<CivHooks::CvGoodyHuts_Uninit>(host, &BeforeCvGoodyHuts_Uninit);CivRegisterAfter<CivHooks::CvGoodyHuts_Uninit>(host, &AfterCvGoodyHuts_Uninit);CivRegisterReplace<CivHooks::CvGoodyHuts_Uninit>(host, &ReplaceCvGoodyHuts_Uninit);
Code
94/// Uninit95void CvGoodyHuts::Uninit()96{97 if (m_aaiPlayerGoodyHutResults != NULL)98 {99 for (int iI = 0; iI < MAX_MAJOR_CIVS; iI++)100 {101 SAFE_DELETE_ARRAY(m_aaiPlayerGoodyHutResults[iI]);102 }103 SAFE_DELETE_ARRAY(m_aaiPlayerGoodyHutResults);104 }105}
Calls
SAFE_DELETE_ARRAYSAFE_DELETE_ARRAY