OSDN Git Service

- Give default values to BasicPlayer, which fixed undefined
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Wed, 14 May 2008 01:52:45 +0000 (01:52 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Wed, 14 May 2008 01:52:45 +0000 (01:52 +0000)
  method error in Pairing.

changelog
shogi-server

index 2af377e..ddedf6f 100644 (file)
--- a/changelog
+++ b/changelog
@@ -4,6 +4,8 @@
          - Floodgate's thread could cause an error when players.yaml was
            cleared by another program (mk_rate). This issue has been 
            fixed.
+         - Give default values to BasicPlayer, which fixed undefined 
+           method error in Pairing.
 
 2008-05-10 Daigo Moriwaki <daigo at debian dot org>
 
index c98dcf7..6a77f86 100755 (executable)
@@ -408,6 +408,9 @@ class BasicPlayer
     @player_id = nil
     @name = nil
     @password = nil
+    @rate = 0
+    @win  = 0
+    @loss = 0
     @last_game_win = false
   end