Fix for crash with modded scenario files

This commit is contained in:
dexy 2019-11-09 21:10:06 +11:00
parent 03fa5575bf
commit 639bebbc75

View File

@ -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
{ }