Don't attempt to draw if we don't have any icons to draw.

This commit is contained in:
Jason Sams
2009-10-06 16:02:03 -07:00
parent 12c14a8559
commit a9d176cbd1

View File

@@ -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;