Added check for invalid index
This commit is contained in:
parent
79eb5fc9c9
commit
3f76c61d94
@ -156,6 +156,9 @@ namespace Exa
|
||||
break;
|
||||
}
|
||||
|
||||
if (chunkIndex >= this.chunks.Length || elementIndex >= this.chunks[chunkIndex].Length)
|
||||
throw new IndexOutOfRangeException();
|
||||
|
||||
return this.chunks[chunkIndex][elementIndex];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user