mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
support extended PedestrianType
This commit is contained in:
parent
b065f68b51
commit
02f08a6c03
1 changed files with 1 additions and 1 deletions
|
@ -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<PedestrianType>(GetString(3), true, out DefaultType);
|
||||
BehaviourName = GetString(4);
|
||||
AnimGroupName = GetString(5);
|
||||
CanDriveMask = (uint)GetInt(6, NumberStyles.HexNumber);
|
||||
|
|
Loading…
Reference in a new issue