fixed bug
This commit is contained in:
parent
0d2700d8b4
commit
9ecc8091fc
|
@ -15,6 +15,8 @@ end
|
|||
function GetUnrepeatedReadingON(lAvoid)
|
||||
lKanji = KanjiData[math.random(#KanjiData)]
|
||||
|
||||
if #lKanji.On == 0 then GetUnrepeatedKanji(lAvoid) end
|
||||
|
||||
for j=1, #lKanji.On do
|
||||
for i=1, #lAvoid do
|
||||
if lKanji.On[j] == lAvoid[i] then
|
||||
|
@ -29,7 +31,7 @@ end
|
|||
function GetUnrepeatedReadingKUN(lAvoid)
|
||||
lKanji = KanjiData[math.random(#KanjiData)]
|
||||
|
||||
if lKanji.Kun == nil then GetUnrepeatedKanji(lAvoid) end
|
||||
if #lKanji.Kun == 0 then GetUnrepeatedKanji(lAvoid) end
|
||||
|
||||
for j=1, #lKanji.Kun do
|
||||
for i=1, #lAvoid do
|
||||
|
@ -218,7 +220,7 @@ while 1 do
|
|||
os.execute("clear")
|
||||
|
||||
ShowProgress()
|
||||
Ask()
|
||||
Ask(math.random(2)+2)
|
||||
response = io.read()
|
||||
|
||||
Check(response)
|
||||
|
|
Loading…
Reference in New Issue