Skip to content

Commit 1f18f0e

Browse files
authored
Merge pull request #150 from BaldPRs/main
Fix parsing of ERSSkill in TRSStats.FindSkillInfo
2 parents 8ee7ab1 + 5abe750 commit 1f18f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osrs/interfaces/gametabs/stats.simba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ begin
174174
for i := 0 to High(lines) do
175175
lines[i] := OCR.Recognize([b.X1, b.Y1 + (i * 12), b.X2, b.Y1 + ((i+1) * 12) + 3], RSFonts.PLAIN_12, [0], 0);
176176

177-
if not (ToStr(skill).Capitalize() in lines[0]) then Exit;
177+
if not (ToStr(skill).After('.').Capitalize() in lines[0]) then Exit;
178178

179179
skillInfo.XP := lines[0].ExtractInteger(0);
180180
skillInfo.Level := XP2Level(skillInfo.XP);

0 commit comments

Comments
 (0)