Bazaar developer reference

CvUnit::ClearPathCache()

Defined in
CvUnit.cpp, line 24002
Class
CvUnit
Hook name
CivHooks::CvUnit_ClearPathCache

Hooks

static bool BeforeCvUnit_ClearPathCache(CvUnit* self);static void AfterCvUnit_ClearPathCache(CvUnit* self);static void ReplaceCvUnit_ClearPathCache(void (*original)(CvUnit*), CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_ClearPathCache>(host, &BeforeCvUnit_ClearPathCache);CivRegisterAfter<CivHooks::CvUnit_ClearPathCache>(host, &AfterCvUnit_ClearPathCache);CivRegisterReplace<CivHooks::CvUnit_ClearPathCache>(host, &ReplaceCvUnit_ClearPathCache);

Code

24001/// Clear the pathing cache.  Please use with caution.24002void CvUnit::ClearPathCache()24003{24004	m_kLastPath.setsize(0);24005	m_uiLastPathCacheDest = (uint)-1;24006}

Calls

Called by