server: fix crash when m_pCurrentPathTarget is null
This commit is contained in:
parent
850fca74ee
commit
391a86b225
1 changed files with 3 additions and 0 deletions
|
@ -1026,6 +1026,9 @@ void CAI_TrackPather::UpdateCurrentTargetLeading()
|
||||||
bool bRestingAtDest = false;
|
bool bRestingAtDest = false;
|
||||||
CPathTrack *pAdjustedDest;
|
CPathTrack *pAdjustedDest;
|
||||||
|
|
||||||
|
if( !m_pCurrentPathTarget )
|
||||||
|
return;
|
||||||
|
|
||||||
// Find the point along the line that we're closest to.
|
// Find the point along the line that we're closest to.
|
||||||
const Vector &vecTarget = m_pCurrentPathTarget->GetAbsOrigin();
|
const Vector &vecTarget = m_pCurrentPathTarget->GetAbsOrigin();
|
||||||
Vector vecPoint;
|
Vector vecPoint;
|
||||||
|
|
Loading…
Reference in a new issue