[gnome-games/glines-vala] randomly selecting pieces was off by one



commit f0ce5e300d5d45acb95341429c9f35525d34b407
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Sun Jun 10 22:22:48 2012 +0200

    randomly selecting pieces was off by one

 glines/src/glines-preview-queue.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glines/src/glines-preview-queue.vala b/glines/src/glines-preview-queue.vala
index eac7ff1..cbf81b4 100644
--- a/glines/src/glines-preview-queue.vala
+++ b/glines/src/glines-preview-queue.vala
@@ -22,7 +22,7 @@ namespace Glines
 
             for (int i = 0; i < this.size; i++)
             {
-                int id = Random.int_range(0, types - 1);
+                int id = Random.int_range(0, types);
                 this.pieces.add(new GlinesPiece(id));
             }
         }



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