mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +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;
|
var oldPosition = Path.Waypoints[currentWaypointTask].Position;
|
||||||
SkipWaypoint = false;
|
SkipWaypoint = false;
|
||||||
|
|
||||||
if (this == null || !CurrentVehicle || Dismissed || Directed)
|
if (this == null || !this || !CurrentVehicle || Dismissed || Directed)
|
||||||
{
|
{
|
||||||
Game.LogTrivial($"Vehicle dismissed, directed, or null, return");
|
Game.LogTrivial($"Vehicle dismissed, directed, or null, return");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue