diff --git a/package.json b/package.json index 5dead29..e4f6a8d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ ], "main": "lib/index.js", "author": "Michael Morrison", - "version": "0.2.14", + "version": "0.2.15", "repository" : { "type" : "git", "url" : "https://github.com/sonicsnes/node-gamedig.git" diff --git a/protocols/openttd.js b/protocols/openttd.js index 4717819..616c132 100644 --- a/protocols/openttd.js +++ b/protocols/openttd.js @@ -44,7 +44,7 @@ module.exports = require('./core').extend({ for(var i = 0; i < state.raw.numplayers; i++) { state.players.push({}); } - state.raw.spectators = reader.uint(1); + state.raw.numspectators = reader.uint(1); state.map = reader.string(); state.raw.map_width = reader.uint(2); state.raw.map_height = reader.uint(2);