diff --git a/lib/Client/Networker.js b/lib/Client/Networker.js index c09c49b..5fc638f 100644 --- a/lib/Client/Networker.js +++ b/lib/Client/Networker.js @@ -81,8 +81,8 @@ define(["Protocol/Helper", "Chuck/ClientGame"], function(ProtocolHelper, ClientG break; case 'gameCommand': - for(var c in options) { - this.clientGame.processGameCommand(c, options[c]); + for(var gameCommand in options) { + this.clientGame.processGameCommand(gameCommand, options[gameCommand]); } break; diff --git a/lib/Server/User.js b/lib/Server/User.js index 3ea4f4e..737d9f3 100644 --- a/lib/Server/User.js +++ b/lib/Server/User.js @@ -55,8 +55,8 @@ define(["Protocol/Helper"], function(ProtocolHelper) { break; case 'gameCommand': - for(var c in options) { - this.channel.processGameCommandFromUser(c, options[c], this); + for(var gameCommand in options) { + this.channel.processGameCommandFromUser(gameCommand, options[gameCommand], this); } break;