Skip to content

Commit

Permalink
Fix bug where levels under 10 did not update
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusvmt committed Oct 22, 2021
1 parent 6ba76b0 commit 71acb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/search.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SearchLog() {
IfInString, newLogLines, %levelUp%
{
levelPos := InStr(newLogLines, levelUp, false)
newLevel := SubStr(newLogLines, levelPos+13, 2)
newLevel := Trim(SubStr(newLogLines, levelPos+13, 2))
newLevel += 0 ; force the string to be an int, clearing any space
nextLevel := newLevel + 1
;So levels stay in order
Expand Down

0 comments on commit 71acb84

Please sign in to comment.