소스 검색

Fix infinite loop in RandomWord

master
Fen Dweller 5 년 전
부모
커밋
d7e6a54811
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/game/language.ts

+ 1
- 1
src/game/language.ts 파일 보기

@@ -226,7 +226,7 @@ export class RandomWord extends Word {

do {
choice = Math.floor(Math.random() * this.choices.length)
} while (choice === this.history.last)
} while (choice === this.history.last && this.choices.length > 1)

this.history.last = choice
return this.choices[choice].configure(this.opt).toString()


불러오는 중...
취소
저장