Commit 10f9b281 authored by asdf's avatar asdf

fix bugs

parent 94774f7c
......@@ -329,8 +329,8 @@ cc.Class({
showChooseRight(target) {
let itemAnswer = target.getComponent('ItemAnswer');
for(let i = 0;i<this.questionList.length;i++){
if(this.questionList[i] === itemAnswer.index){
this.questionList.splice(itemAnswer.index, 1);
if(this.questionList[i] === GameData.questionIndex){
this.questionList.splice(i, 1);
}
}
this.nodeDict.nodMask.active = true;
......
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