From 43bf3788c4a74511538b31aa8a6b9560e25f7851 Mon Sep 17 00:00:00 2001 From: Brian Wignall Date: Mon, 1 Mar 2021 07:19:02 -0500 Subject: [PATCH] Array access changes --- 38 Fur Trader/csharp/GameState.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/38 Fur Trader/csharp/GameState.cs b/38 Fur Trader/csharp/GameState.cs index 4e174040..41c9d1ca 100644 --- a/38 Fur Trader/csharp/GameState.cs +++ b/38 Fur Trader/csharp/GameState.cs @@ -17,9 +17,9 @@ namespace FurTrader internal int[] Pelts { get; private set; } internal int MinkPelts { get { return this.Pelts[0]; } set { this.Pelts[0] = value; } } - internal int BeaverPelts { get { return this.Pelts[0]; } set { this.Pelts[0] = value; } } - internal int ErminePelts { get { return this.Pelts[0]; } set { this.Pelts[0] = value; } } - internal int FoxPelts { get { return this.Pelts[0]; } set { this.Pelts[0] = value; } } + internal int BeaverPelts { get { return this.Pelts[1]; } set { this.Pelts[1] = value; } } + internal int ErminePelts { get { return this.Pelts[2]; } set { this.Pelts[2] = value; } } + internal int FoxPelts { get { return this.Pelts[3]; } set { this.Pelts[3] = value; } } internal int SelectedFort { get; set; }