mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-25 22:34:25 +00:00
server: fix crash when m_pCurrentPathTarget is null
This commit is contained in:
parent
850fca74ee
commit
391a86b225
@ -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…
x
Reference in New Issue
Block a user