From c9360ed42ff44782c5c659f3cc72f18d4d231983 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Wed, 9 Jun 2010 17:47:31 +0000
Subject: [PATCH] forced hand.group to initialize as true array.

---
 exec/load/cardlib.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/exec/load/cardlib.js b/exec/load/cardlib.js
index cc46db1efc..188b3968de 100644
--- a/exec/load/cardlib.js
+++ b/exec/load/cardlib.js
@@ -118,7 +118,7 @@ function Hunt_Straight(cards,depth) {
 /* This function accepts any number of cards in as a true array */
 function Rank(cards) {
 	var hand=new Object();
-	hand.group = new Array();
+	hand.group = [[],[],[],[],[]];
 	hand.rank = 0;
 	hand.str = "";
 
@@ -231,8 +231,6 @@ function Rank(cards) {
 		the array index. unshift() will leave
 		the cards sorted from high to low. */
 	for(c in count) { 
-		if(!hand.group[count[c]]) 
-			hand.group[count[c]]=new Array();  
 		hand.group[count[c]].unshift(c); 
 	}
 	return hand;
-- 
GitLab