Permalink
Browse files

Hopefully fixed kills

  • Loading branch information...
macalinao committed Jun 30, 2012
1 parent 1fb7815 commit 67c1dbcabe6e268bc6e129f4569f8badaec1fea3
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/mirah/game/game_report.mirah
@@ -35,7 +35,11 @@ class GameReport
ranking = Ranking(obj)
rankingNode.put 'time', ranking.time
rankingNode.put 'player', ranking.player
- rankingNode.put 'kills', JSONArray.new(ranking.kills)
+ jsonKillsArray = JSONArray.new
+ ranking.kills.each do |kill|
+ jsonKillsArray.put kill.toString
+ end
+ rankingNode.put 'kills', jsonKillsArray
rankingNode.put 'class', ranking.clazz
rankingNode.put 'rank', ranking.rank
rankingsNode.put rankingNode

0 comments on commit 67c1dbc

Please sign in to comment.