mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 15:02:54 +08:00
Fix for crash with modded scenario files
This commit is contained in:
parent
03fa5575bf
commit
639bebbc75
@ -224,7 +224,7 @@ namespace CodeWalker.World
|
||||
{ }
|
||||
}
|
||||
|
||||
isveh = scp.Type.Value.IsVehicle;
|
||||
isveh = scp.Type?.IsVehicle ?? false; //TODO: make a warning about this if scp.Type is null?
|
||||
}
|
||||
else
|
||||
{ }
|
||||
|
Loading…
Reference in New Issue
Block a user