1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Fixed a crash when a collected ped is arrested.

This commit is contained in:
Rich Dunne 2020-11-08 11:08:40 -07:00
parent 3f05139c59
commit f0af9b6207

View file

@ -256,7 +256,7 @@ namespace SceneManager
{
GameFiber.Yield();
}
if (Vehicle && Driver)
if (Driver && Driver.CurrentVehicle)
{
Game.LogTrivial($"{Vehicle.Model.Name} releasing from stop waypoint.");
Rage.Native.NativeFunction.Natives.x260BE8F09E326A20(Vehicle, 0f, 1, true);