* FIX: added extra check for calling 120, etc. so that people can't cheat
[e-DoKo.git] / functions.php
index 893f916c68271ba1d0151b83ee288969034094e1..997ba43e154af02582aa59ff981015d2e85628fa 100644 (file)
@@ -656,7 +656,7 @@ function can_call($what,$hash)
   $gameid   = DB_get_gameid_by_hash($hash);
   $gametype = DB_get_gametype_by_gameid($gameid);
 
-  $NRcards  = count(DB_get_hand($me));
+  $NRcards  = count(DB_get_hand($hash));
   
   $NRallcards = 0;
   for ($i=1;$i<5;$i++)