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

Added null check for vehicle in game fiber loop following unstucking a vehicle

This commit is contained in:
Rich Dunne 2020-09-24 04:12:44 -06:00
parent 6247294039
commit da1dd590f7

View file

@ -60,7 +60,7 @@ namespace SceneManager
Rage.Native.NativeFunction.Natives.x260BE8F09E326A20(Vehicle, 0f, 1, true); Rage.Native.NativeFunction.Natives.x260BE8F09E326A20(Vehicle, 0f, 1, true);
GameFiber.StartNew(() => GameFiber.StartNew(() =>
{ {
while(Vehicle.Speed < 1f) while(Vehicle && Vehicle.Speed < 1f)
{ {
GameFiber.Yield(); GameFiber.Yield();
} }