Bazaar developer reference

CvGrandStrategyAI::Uninit()

Defined in
CvGrandStrategyAI.cpp, line 158
Class
CvGrandStrategyAI
Hook name
CivHooks::CvGrandStrategyAI_Uninit

Hooks

static bool BeforeCvGrandStrategyAI_Uninit(CvGrandStrategyAI* self);static void AfterCvGrandStrategyAI_Uninit(CvGrandStrategyAI* self);static void ReplaceCvGrandStrategyAI_Uninit(void (*original)(CvGrandStrategyAI*), CvGrandStrategyAI* self);CivRegisterBefore<CivHooks::CvGrandStrategyAI_Uninit>(host, &BeforeCvGrandStrategyAI_Uninit);CivRegisterAfter<CivHooks::CvGrandStrategyAI_Uninit>(host, &AfterCvGrandStrategyAI_Uninit);CivRegisterReplace<CivHooks::CvGrandStrategyAI_Uninit>(host, &ReplaceCvGrandStrategyAI_Uninit);

Code

157/// Deallocate memory created in initialize158void CvGrandStrategyAI::Uninit()159{160	SAFE_DELETE_ARRAY(m_paiGrandStrategyPriority);161	SAFE_DELETE_ARRAY(m_eGuessOtherPlayerActiveGrandStrategy);162	SAFE_DELETE_ARRAY(m_eGuessOtherPlayerActiveGrandStrategyConfidence);163}

Calls

Called by