Bazaar developer reference

CvMap::uninit()

Defined in
CvMap.cpp, line 370
Class
CvMap
Hook name
CivHooks::CvMap_uninit

Hooks

static bool BeforeCvMap_uninit(CvMap* self);static void AfterCvMap_uninit(CvMap* self);static void ReplaceCvMap_uninit(void (*original)(CvMap*), CvMap* self);CivRegisterBefore<CivHooks::CvMap_uninit>(host, &BeforeCvMap_uninit);CivRegisterAfter<CivHooks::CvMap_uninit>(host, &AfterCvMap_uninit);CivRegisterReplace<CivHooks::CvMap_uninit>(host, &ReplaceCvMap_uninit);

Code

370void CvMap::uninit()371{372	SAFE_DELETE_ARRAY(m_paiNumResource);373	SAFE_DELETE_ARRAY(m_paiNumResourceOnLand);374375	SAFE_DELETE_ARRAY(m_pMapPlots);376377378	SAFE_DELETE_ARRAY(m_pYields);379	SAFE_DELETE_ARRAY(m_pFoundValue);380	SAFE_DELETE_ARRAY(m_pPlayerCityRadiusCount);381	SAFE_DELETE_ARRAY(m_pVisibilityCount);382	SAFE_DELETE_ARRAY(m_pRevealedOwner);383	SAFE_DELETE_ARRAY(m_pRevealed);384	SAFE_DELETE_ARRAY(m_pRevealedImprovementType);385	SAFE_DELETE_ARRAY(m_pRevealedRouteType);386	SAFE_DELETE_ARRAY(m_pNoSettling);387	SAFE_DELETE_ARRAY(m_pResourceForceReveal);388389	m_iGridWidth = 0;390	m_iGridHeight = 0;391	m_iGridSize = 0;392	m_iLandPlots = 0;393	m_iOwnedPlots = 0;394	m_iNumNaturalWonders = 0;395396	m_areas.Uninit();397	m_landmasses.Uninit();398	m_kPlotManager.Uninit();399}

Calls

Called by