[gnome-games/glines-vala] randomly selecting pieces was off by one
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/glines-vala] randomly selecting pieces was off by one
- Date: Sun, 10 Jun 2012 20:23:31 +0000 (UTC)
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]