Fixed bug
This commit is contained in:
Perfare
2019-01-13 23:21:45 +08:00
parent c3c4697562
commit 903be743ac
7 changed files with 37 additions and 18 deletions

View File

@@ -26,8 +26,7 @@ namespace AssetStudio
case 0: return X;
case 1: return Y;
case 2: return Z;
default:
throw new IndexOutOfRangeException("Invalid Vector3 index!");
default: throw new ArgumentOutOfRangeException(nameof(index), "Invalid Vector3 index!");
}
}
@@ -38,8 +37,7 @@ namespace AssetStudio
case 0: X = value; break;
case 1: Y = value; break;
case 2: Z = value; break;
default:
throw new IndexOutOfRangeException("Invalid Vector3 index!");
default: throw new ArgumentOutOfRangeException(nameof(index), "Invalid Vector3 index!");
}
}
}