1
Fork 0
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:
Rich Dunne 2021-05-23 06:41:33 -06:00
parent cc80401c55
commit 4bae2d713e

View file

@ -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;