diff --git a/Assets/Scripts/Importing/Items/Definitions/PedestrianDef.cs b/Assets/Scripts/Importing/Items/Definitions/PedestrianDef.cs index 894219e7..3ab1351e 100644 --- a/Assets/Scripts/Importing/Items/Definitions/PedestrianDef.cs +++ b/Assets/Scripts/Importing/Items/Definitions/PedestrianDef.cs @@ -58,7 +58,7 @@ namespace SanAndreasUnity.Importing.Items.Definitions Id = GetInt(0); ModelName = GetString(1); TextureDictionaryName = GetString(2); - DefaultType = (PedestrianType)Enum.Parse(typeof(PedestrianType), GetString(3), true); + Enum.TryParse(GetString(3), true, out DefaultType); BehaviourName = GetString(4); AnimGroupName = GetString(5); CanDriveMask = (uint)GetInt(6, NumberStyles.HexNumber);