Fix replay bug
This commit is contained in:
parent
594a902bc0
commit
c40ddff921
@ -1671,7 +1671,7 @@ control.prototype.replay = function () {
|
|||||||
var tools = Object.keys(core.status.hero.items.tools).sort();
|
var tools = Object.keys(core.status.hero.items.tools).sort();
|
||||||
var constants = Object.keys(core.status.hero.items.constants).sort();
|
var constants = Object.keys(core.status.hero.items.constants).sort();
|
||||||
var index;
|
var index;
|
||||||
if ((index=tools.indexOf(itemId))>=0 || (index=constants.indexOf(itemId)+100)>=100) {
|
if ((index=tools.indexOf(itemId))>=0 || (index=constants.indexOf(itemId)+1000)>=1000) {
|
||||||
core.ui.drawToolbox(index);
|
core.ui.drawToolbox(index);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
core.ui.closePanel();
|
core.ui.closePanel();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user