diff --git a/libs/actions.js b/libs/actions.js index be76dea8..ded8d982 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -1537,7 +1537,7 @@ actions.prototype._clickToolbox = function (x, y) { if (x >= this.LAST - 2 && y == this.LAST) { core.playSound('取消'); core.ui.closePanel(); - var last = core.status.route[core.status.route.length - 1]; + var last = core.status.route[core.status.route.length - 1] || ''; if (last.startsWith('equip:') || last.startsWith('unEquip:')) { core.status.route.push('no'); }