diff --git a/Assets/Scripts/Utils/Utils.cs b/Assets/Scripts/Utils/Utils.cs index 3a190eac..f701ed50 100644 --- a/Assets/Scripts/Utils/Utils.cs +++ b/Assets/Scripts/Utils/Utils.cs @@ -84,7 +84,7 @@ namespace Assets.Scripts { //iPhone2,1 var s = info.Replace("iPhone", "").Split(','); - return s.Length == 2 && int.Parse(s[0]) < 9; + return s.Length == 2 && int.TryParse(s[0],out int gen) && gen < 9; } return false; }