From: Carl Worth Date: Sat, 6 Jun 2020 12:10:36 +0000 (-0700) Subject: Fix admin interface to work once again X-Git-Url: https://git.cworth.org/git?p=empires-server;a=commitdiff_plain;h=9d73dc393cf84f6473304528f09e7b8696ed6510 Fix admin interface to work once again This has been broken since commit 4c810ccb16ea6cfcdcb7f507aea2affc2c36f163 where we renamed "clients" to "players" but missed this reference. How I miss static checking for things like this... --- diff --git a/lmno.js b/lmno.js index b85041e..db0d35b 100644 --- a/lmno.js +++ b/lmno.js @@ -267,7 +267,7 @@ app.get('/admin/', auth_admin, (request, response) => { let idle = []; for (let id in lmno.games) { - if (lmno.games[id].clients.length) + if (lmno.games[id].players.length) active.push(lmno.games[id]); else idle.push(lmno.games[id]);