mark field readonly

GitOrigin-RevId: 9e06f8a03a69c18da9e4828263eed65b13776904
This commit is contained in:
Colin McMillen 2020-02-20 16:36:42 -05:00
parent 0ee671c8b1
commit 0e164f7b75

View File

@ -19,7 +19,7 @@ namespace SemiColinGames {
public static class FMath { public static class FMath {
public const float PI = (float) Math.PI; public const float PI = (float) Math.PI;
private static float[] degToRad = new float[360]; private readonly static float[] degToRad = new float[360];
static FMath() { static FMath() {
for (int i = 0; i < degToRad.Length; i++) { for (int i = 0; i < degToRad.Length; i++) {