flackr/dungeon

Crash during gameplay, checking condition of undefined character

Opened this issue · 0 comments

/home/rob/Documents/dungeon/server/client/js/dungeon-common.js:140
this.characterPlacement[eventData.character].condition.stats[
^
TypeError: Cannot read property 'condition' of undefined
at Object.processEvent (/home/rob/Documents/dungeon/server/client/js/dungeon-common.js:140:53)
at Object.eventReceived (/home/rob/Documents/dungeon/server/server.js:102:14)
at Socket.$emit (events.js:70:17)
at SocketNamespace.handlePacket (/home/rob/node_modules/socket.io/lib/namespace.js:335:22)
at Manager.onClientMessage (/home/rob/node_modules/socket.io/lib/manager.js:468:38)
at WebSocket.onMessage (/home/rob/node_modules/socket.io/lib/transport.js:387:20)
at Parser. (/home/rob/node_modules/socket.io/lib/transports/websocket/hybi-16.js:40:10)
at Parser.emit (events.js:67:17)
at /home/rob/node_modules/socket.io/lib/transports/websocket/hybi-16.js:289:16
at Parser.expectHandler (/home/rob/node_modules/socket.io/lib/transports/websocket/hybi-16.js:300:15)