diff -r -u gnome-games-3.5.90.orig/glines/src/glines.c gnome-games-3.5.90/glines/src/glines.c
--- gnome-games-3.5.90.orig/glines/src/glines.c	2012-08-20 15:02:32.000000000 +0300
+++ gnome-games-3.5.90/glines/src/glines.c	2012-09-01 13:19:53.584537937 +0300
@@ -441,7 +441,7 @@
 
   for (i = 0; i < MAXNPIECES; i++) {
 
-    if (i < npieces)
+    if (i < npieces && preview[i] > 0 )
       pattern = cairo_pattern_create_for_surface (preview_surfaces[preview[i] - 1]);
     else
       pattern = cairo_pattern_create_for_surface (blank_preview_surface);
