Skip to content

Commit

Permalink
Quick hotfix to Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixill committed Apr 4, 2021
1 parent c308989 commit 7a64777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CS-NixLib/src/Grid/Grid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public Grid(IList<IList<T>> list) {
/// </summary>
public Grid(int width, int height) {
IntWidth = width;
foreach (int r in Enumerable.Range(0, height - 1)) {
foreach (int r in Enumerable.Range(0, height)) {
List<T> innerList = new List<T>();
foreach (int c in Enumerable.Range(0, width - 1)) {
foreach (int c in Enumerable.Range(0, width)) {
innerList.Add(default(T));
}
BackingList.Add(innerList);
Expand Down

0 comments on commit 7a64777

Please sign in to comment.