From b3fd837257f444f299f9d801e7c5ee4bccc9e15e Mon Sep 17 00:00:00 2001 From: zharkovstas Date: Sun, 19 May 2019 12:34:08 +0500 Subject: [PATCH] Empty tips varlamov fix --- src/GameController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GameController.js b/src/GameController.js index 85ca4f6..888cba3 100644 --- a/src/GameController.js +++ b/src/GameController.js @@ -64,7 +64,7 @@ export class GameController { if(!this._tips) { return []; } - if(this.varlamov) { + if(this.varlamov && this._tips.length) { const match = this._tips[this._tips.length - 1].match(/высотой в (.) этажей/); if(match && match[1]) { const num = parseInt(match[1], 10); -- 2.50.1