Permalink
Browse files

Fixed Issue #8

Changed reference to me.game_id to gid() in is_valid_letter()
  • Loading branch information...
1 parent 9cdf7cd commit 337ba8b33d81cdf85b2efca642c8ca0969ec8620 @francisbyrne committed Apr 25, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 client/hangwithme.js
View
@@ -147,9 +147,8 @@ var is_valid_letter = function (letter) {
}
// check if letter has already been guessed
- var me = player();
- var guessed_letters = Letters.find({player_id: me._id,
- game_id: me.game_id});
+ var guessed_letters = Letters.find({player_id: pid(),
+ game_id: gid()});
var is_valid = true;
guessed_letters.forEach( function(guessed_letter) {

0 comments on commit 337ba8b

Please sign in to comment.