From fb074dc3183f5f00a48cdb1536ccef6757772837 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 14 Jan 2020 19:45:22 -0500 Subject: [PATCH] History: make backing array readonly GitOrigin-RevId: 33c1bfb915b4f2fb80c3bb1f4b88ef924a45363d --- Shared/History.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/History.cs b/Shared/History.cs index 04c6abd..56abd77 100644 --- a/Shared/History.cs +++ b/Shared/History.cs @@ -17,7 +17,7 @@ namespace SemiColinGames { class History { // Backing store for the History's items. - private T[] items; + private readonly T[] items; // Points at the most-recently-inserted item. private int idx = 0;