From a9d176cbd14d2a299e3a67cd9e9e1c17453c2226 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 6 Oct 2009 16:02:03 -0700 Subject: [PATCH] Don't attempt to draw if we don't have any icons to draw. --- res/raw/rollo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/raw/rollo.c b/res/raw/rollo.c index e60b8a2711..bae786d465 100644 --- a/res/raw/rollo.c +++ b/res/raw/rollo.c @@ -355,6 +355,9 @@ main(int launchID) // Bug makes 1.0f alpha fail. color(1.0f, 1.0f, 1.0f, 0.99f); + if (iconCount <= 0) { + return 1; + } int lastIcon = iconCount-1; int page = g_PosPage;