Extra safety checks.
This commit is contained in:
parent
5abd7e1ebf
commit
257ddb520a
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue