fix: crash introduced in pr #656
This commit is contained in:
parent
1a0809144f
commit
44567766be
1 changed files with 3 additions and 0 deletions
|
|
@ -507,6 +507,9 @@ void Bot::setAimDirection () {
|
|||
auto predictNode = m_lastPredictIndex;
|
||||
|
||||
auto isPredictedIndexApplicable = [&] () -> bool {
|
||||
if (!graph.exists (predictNode)) {
|
||||
return false;
|
||||
}
|
||||
TraceResult result {};
|
||||
game.testLine (getEyesPos (), graph[predictNode].origin + pev->view_ofs, TraceIgnore::None, ent (), &result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue