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:
parent
6247294039
commit
da1dd590f7
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ namespace SceneManager
|
|||
Rage.Native.NativeFunction.Natives.x260BE8F09E326A20(Vehicle, 0f, 1, true);
|
||||
GameFiber.StartNew(() =>
|
||||
{
|
||||
while(Vehicle.Speed < 1f)
|
||||
while(Vehicle && Vehicle.Speed < 1f)
|
||||
{
|
||||
GameFiber.Yield();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue