small patch for mahjongg



Clicking the undo button in mahjongg causes a crash whenever one tile
has been selected (except when no tiles have been removed yet).
The following patch fixes this.

Index: mahjongg/mahjongg.c
===================================================================
RCS file: /cvs/gnome/gnome-games/mahjongg/mahjongg.c,v
retrieving revision 1.48
diff -u -r1.48 mahjongg.c
--- mahjongg.c  1999/01/10 11:04:10     1.48
+++ mahjongg.c  1999/01/18 16:47:51
@@ -1089,7 +1089,7 @@
     if (selected_tile<MAX_TILES) 
       {
	tiles[selected_tile].selected = 0 ;
-	change_tile_image (&tiles[i]);
+	change_tile_image (&tiles[selected_tile]);
	selected_tile = MAX_TILES + 1; 
       }


Ronald



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]