fixed exception for games without fellows
This commit is contained in:
@@ -37,9 +37,11 @@ class HistoryGame
|
||||
@createDate=data['createDate']
|
||||
@createDateString=data['createDateString']
|
||||
@fellowPlayers=[]
|
||||
if(data.has_key? "fellowPlayers")
|
||||
data['fellowPlayers'].each do |player|
|
||||
@fellowPlayers << Player.new(player)
|
||||
end
|
||||
end
|
||||
@gameId=data['gameId']
|
||||
@gameMode=data['gameMode']
|
||||
@gameType=data['gameType']
|
||||
|
||||
Reference in New Issue
Block a user