From: Mark Slee Date: Sun, 11 Aug 2013 02:28:14 +0000 (-0700) Subject: One tweak to avoid crash on negative cube num X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7b5af85a438e9ee13efcc2025ed6b0f11de48188;p=SugarCubes.git One tweak to avoid crash on negative cube num --- diff --git a/_Overlay.pde b/_Overlay.pde index 5bafe29..29e2353 100644 --- a/_Overlay.pde +++ b/_Overlay.pde @@ -744,7 +744,7 @@ class DebugUI { boolean first = true; int cubeNum = 0; for (int cube : channel) { - if (cube == 0) { + if (cube <= 0) { break; } xPos += debugXSpacing;