Skip to content

Commit e6b8f6e

Browse files
committed
Fixed Select Bug
1 parent 7b17cd7 commit e6b8f6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osrs/interfaces/chat/make.simba

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ end;
455455
function TRSMake.FindQuantityButton(amount: Integer): TRSMakeQuantityButton;
456456
var
457457
hintPt: TPoint;
458-
i, idx: Integer;
458+
idx: Integer;
459459
quantity: ERSItemQuantity;
460460
quantitybtns: array of TRSMakeQuantityButton;
461461
begin
@@ -565,7 +565,7 @@ begin
565565
boxes[index].Y1 := boxes[index].Y2 + 1;
566566
boxes[index].Y2 += 15;
567567

568-
if OCR.Locate(boxes[index], 'Space', [Self.TEXT_COLOR], 0, RSFonts.PLAIN_11) < 0.95 then
568+
if OCR.Locate(boxes[index], 'Space', [Self.TEXT_COLOR], 0, RSFonts.PLAIN_11) >= 0.95 then
569569
Keyboard.KeyPress(EKeyCode.SPACE)
570570
else
571571
Keyboard.KeyPress(EKeyCode(Ord(EKeyCode.NUM_1) + index));

0 commit comments

Comments
 (0)