From add2f2efbb712d6124e29dca1c6ee857500a70c9 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Wed, 14 Feb 2018 12:54:37 +0900 Subject: [PATCH] Don't inputlog `>version` if Git isn't installed --- sim/battle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/battle.js b/sim/battle.js index 75af234287..4f3125fed6 100644 --- a/sim/battle.js +++ b/sim/battle.js @@ -189,7 +189,7 @@ class Battle extends Dex.ModdedDex { const inputOptions = {formatid: options.formatid, seed: this.prng.seed}; if (this.rated) inputOptions.rated = this.rated; - if (global.__version !== undefined) { + if (global.__version) { this.inputLog.push(`>version ${global.__version}`); } this.inputLog.push(`>start ` + JSON.stringify(inputOptions));