Added check for invalid index
This commit is contained in:
1 parent
79eb5fc9c9
commit
3f76c61d94
1 file changed
+3
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user