Commit 340d6997 authored by 杨一航's avatar 杨一航

fix

parent cae18259
......@@ -661,7 +661,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
resolve(this.pieceJump(node, from + 1, to));
}).start()
} else {
let word = this._cardList[Math.min(from + 1, this._cardList.length - 1)].getComponent(BoardCardItem)._word
from = from < 0 ? 0 : from;
let word = this._cardList[Math.min(from, this._cardList.length - 1)].getComponent(BoardCardItem)._word
resolve(word);
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment