fixing up the branch

This commit is contained in:
logsol 2012-07-22 13:05:29 +02:00
parent 005fb57c31
commit 76391c2c5e
6 changed files with 19 additions and 11 deletions

View file

@ -1,4 +1,9 @@
define(["Game/Core/Protocol/Helper", "Game/Client/GameController"], function(ProtocolHelper, GameController) {
define([
"Game/Core/Protocol/Helper",
"Game/Client/GameController"
],
function(ProtocolHelper, GameController) {
function Networker(socketLink) {
this.socketLink = socketLink;
@ -36,7 +41,7 @@ define(["Game/Core/Protocol/Helper", "Game/Client/GameController"], function(Pro
}
Networker.prototype.onDisconnect = function() {
this.gameController.destruct();
if(this.gameController) this.gameController.destruct();
this.gameController = null;
}