mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-11 15:47:56 +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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user