Extra safety checks.

This commit is contained in:
Major Cooke 2024-02-22 18:20:40 -06:00 committed by Rachael Alexanderson
commit 257ddb520a
2 changed files with 3 additions and 2 deletions

View file

@ -2589,7 +2589,7 @@ static bool FindPathAStar(AActor *chaser, AActor* startnode, AActor* goalnode, T
bool FLevelLocals::FindPath(AActor* chaser, AActor* target, AActor* startNode, AActor* goalNode)
{
if (!chaser || !target)
if (!chaser || !target || PathNodes.Size() < 1)
{
return false;
}