We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 583615e + 6285752 commit 4e614d6Copy full SHA for 4e614d6
Board.cs
@@ -230,6 +230,12 @@ public void SetContentAt(Point p, Content content)
230
/// <param name="c">The new content at the position.</param>
231
public void SetContentAt(int x, int y, Content c)
232
{
233
+ if (x < 0) {
234
+ throw new ArgumentOutOfRangeException ("x", "Invalid x coordinate.");
235
+ }
236
+ if (y < 0) {
237
+ throw new ArgumentOutOfRangeException ("y", "Invalid y coordinate.");
238
239
content[x, y] = c;
240
ClearGroupCache();
241
}
0 commit comments