From 1d283f50300d88e7ac1761f663deb792833b81fd Mon Sep 17 00:00:00 2001 From: OpSimple <35542206+OpSimple@users.noreply.github.com> Date: Fri, 1 Jun 2018 23:47:27 +0530 Subject: Array checking made constructor safe --- server/src/commands/mod/dumb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/commands/mod') diff --git a/server/src/commands/mod/dumb.js b/server/src/commands/mod/dumb.js index ac2d995..ef2c5b2 100644 --- a/server/src/commands/mod/dumb.js +++ b/server/src/commands/mod/dumb.js @@ -43,7 +43,7 @@ exports.run = async (core, server, socket, data) => { dumb:true } - if(data.allies && data.allies.constructor === Array){ + if(data.allies && Array.isArray(data.allies)){ record.allies = data.allies; } -- cgit v1.2.1