Browse Source

History: make backing array readonly

GitOrigin-RevId: 33c1bfb915
master
Colin McMillen 4 years ago
parent
commit
fb074dc318
  1. 2
      Shared/History.cs

2
Shared/History.cs

@ -17,7 +17,7 @@ namespace SemiColinGames {
class History<T> {
// 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;

Loading…
Cancel
Save