summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-05 02:24:53 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-05 02:24:53 +0100
commit520f8417ef94ef48e1273d7b0636a738faab80cc (patch)
tree128c1708d841c2f63bb9de1311b61ff306b7e71b
parent76431d4ff189b8531f7bc89dc80e9fa4b8e79bbd (diff)
fix invalid field name
renamed state in game_state Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--cao-common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cao-common.js b/cao-common.js
index e46f39b..cc29ddb 100644
--- a/cao-common.js
+++ b/cao-common.js
@@ -33,7 +33,7 @@ var CAO = function() {
/* map_handle_response_ok {{{ */
map_handle_response_ok['join_game'] = function(result) {
- self.on_join_game_ok(result['state']);
+ self.on_join_game_ok(result['game_state']);
map_handle_response_ok['view_player_cards'](result);
};