OSDN Git Service

Fix a bug.
[shogi-server/shogi-server.git] / shogi-server
index 2ff785c..c4b8673 100755 (executable)
@@ -1269,7 +1269,7 @@ class GameResultWin < GameResult
   def initialize(winner, loser)
     super
     @winner, @loser = winner, loser
-    rate
+    rate if @winner.id && @loser.id
   end
 
   def win?(player)