Browse Source

server: fix crash when m_pCurrentPathTarget is null

pull/11/head
nillerusr 3 years ago
parent
commit
391a86b225
  1. 3
      game/server/ai_trackpather.cpp

3
game/server/ai_trackpather.cpp

@ -1026,6 +1026,9 @@ void CAI_TrackPather::UpdateCurrentTargetLeading() @@ -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…
Cancel
Save