From 70e961d824cada5687d1447ad331cd64ae69e059 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Thu, 30 Aug 2018 12:18:47 +0800 Subject: [PATCH] Fix opening book on viewmap --- libs/ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/ui.js b/libs/ui.js index f288089c..66996dbd 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1250,8 +1250,7 @@ ui.prototype.drawCursor = function () { ////// 绘制怪物手册 ////// ui.prototype.drawBook = function (index) { - - var enemys = core.enemys.getCurrentEnemys(core.floorIds[core.status.event.selection]); + var enemys = core.enemys.getCurrentEnemys(core.floorIds[(core.status.event.selection||{}).index]); var background = core.canvas.ui.createPattern(core.material.ground, "repeat"); clearInterval(core.interval.tipAnimate);