From 19b6c3d95fb48c83493eaffca988f8f83576aab1 Mon Sep 17 00:00:00 2001 From: William Burns Date: Wed, 24 Feb 2016 21:37:22 +0000 Subject: [PATCH] Make sure the blocks are in the canvas. --- .../src/nautilus/game/arcade/game/games/draw/Draw.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java index 99c04736d..5d978c44d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/draw/Draw.java @@ -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); }