C#C
C#15mo ago
axo

✅ this error makes no sense

getting a null reference exception here:
static Evaluation eval = new();


and that traces to this:
mgTable[pc][sq] = mgValue[p] + GetMGTable(p)[sq];


and THAT traces to this:
static int[][] mgTable = new int[12][];


am i dumb or is this just not how you construct an array like that?
Was this page helpful?