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);