Fix opening book on viewmap

This commit is contained in:
ckcz123 2018-08-30 12:18:47 +08:00
parent 265939bbb9
commit 70e961d824

View File

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