Make sure the blocks are in the canvas.

This commit is contained in:
William Burns 2016-02-24 21:37:22 +00:00
parent a5060e014b
commit 19b6c3d95f
1 changed files with 6 additions and 0 deletions

View File

@ -826,6 +826,12 @@ public class Draw extends SoloGame
continue blocks;
}
if (!_canvas.contains(other))
{
// Block isn't in the canvas.
continue blocks;
}
// Add it to the pending list for change later.
pending.add(other);
}