diff --git a/game/server/ai_trackpather.cpp b/game/server/ai_trackpather.cpp index 18596c9a..c4c02091 100644 --- a/game/server/ai_trackpather.cpp +++ b/game/server/ai_trackpather.cpp @@ -1026,6 +1026,9 @@ void CAI_TrackPather::UpdateCurrentTargetLeading() bool bRestingAtDest = false; CPathTrack *pAdjustedDest; + if( !m_pCurrentPathTarget ) + return; + // Find the point along the line that we're closest to. const Vector &vecTarget = m_pCurrentPathTarget->GetAbsOrigin(); Vector vecPoint;