From 809a622cd9ee4e5aa307d52f88379d4567a59d71 Mon Sep 17 00:00:00 2001 From: logsol Date: Sun, 28 Dec 2014 20:34:45 +0100 Subject: [PATCH] bugfix throwing exception --- app/Game/Core/Player.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Game/Core/Player.js b/app/Game/Core/Player.js index 4e3a012..3a5ac6d 100755 --- a/app/Game/Core/Player.js +++ b/app/Game/Core/Player.js @@ -99,7 +99,12 @@ function (Doll, Settings, Nc, Exception, SpectatorDoll, RagDoll) { // FIXME: do something better then just respawn in GameController if(this.holdingItem) { - this.throw(0, 0, 0, this.holdingItem) + var options = { + x: 0, + y: 0, + av: 0 + }; + this.throw(options, this.holdingItem) } // prepare for creating the ragdoll