diff --git a/CodeWalker.Core/World/Scenarios.cs b/CodeWalker.Core/World/Scenarios.cs index 04b9bc1..8be95ba 100644 --- a/CodeWalker.Core/World/Scenarios.cs +++ b/CodeWalker.Core/World/Scenarios.cs @@ -223,8 +223,8 @@ namespace CodeWalker.World else { } } - - isveh = scp.Type.Value.IsVehicle; + + isveh = scp.Type?.IsVehicle ?? false; //TODO: make a warning about this if scp.Type is null? } else { }