mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
Add validity check to CollectedPed on waypoint task
This commit is contained in:
parent
cc80401c55
commit
4bae2d713e
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ namespace SceneManager.CollectedPeds
|
|||
var oldPosition = Path.Waypoints[currentWaypointTask].Position;
|
||||
SkipWaypoint = false;
|
||||
|
||||
if (this == null || !CurrentVehicle || Dismissed || Directed)
|
||||
if (this == null || !this || !CurrentVehicle || Dismissed || Directed)
|
||||
{
|
||||
Game.LogTrivial($"Vehicle dismissed, directed, or null, return");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue