mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-10 15:20:29 +01:00
Fixed invalid CollectedPed crash
This commit is contained in:
parent
7e7bf6fae5
commit
e7be1dc820
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ namespace SceneManager.Utils
|
|||
}
|
||||
else
|
||||
{
|
||||
CollectedPed collectedPed = PathManager.Paths.Where(x => x != null).SelectMany(x => x.CollectedPeds).FirstOrDefault(x => x.CurrentVehicle && x.CurrentVehicle == nearbyVehicle);
|
||||
CollectedPed collectedPed = PathManager.Paths.Where(x => x != null).SelectMany(x => x.CollectedPeds).FirstOrDefault(x => x != null && x.CurrentVehicle == nearbyVehicle);
|
||||
if(collectedPed != null)
|
||||
{
|
||||
collectedPed.Dismiss((Dismiss)dismissIndex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue