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

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