fix:(small)开局马上点击工具栏再关闭会报错的bug
This commit is contained in:
parent
c8956a15ae
commit
e1f97be282
@ -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');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user