From 5ee41c8da0e3b68f00d16de2cc3ffa138a7706c3 Mon Sep 17 00:00:00 2001 From: eckserah Date: Wed, 19 Sep 2018 19:24:56 -0400 Subject: [PATCH] fix a crash with navigate --- msl-bot/bin/_src/scripts/sub/navigate.au3 | 2 +- msl-bot/msl-bot.au3 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/msl-bot/bin/_src/scripts/sub/navigate.au3 b/msl-bot/bin/_src/scripts/sub/navigate.au3 index 42b53500..dca74ad8 100644 --- a/msl-bot/bin/_src/scripts/sub/navigate.au3 +++ b/msl-bot/bin/_src/scripts/sub/navigate.au3 @@ -320,7 +320,7 @@ Func navigate($sLocation, $bForceSurrender = False, $iAttempt = 1) While TimerDiff($t_hTimer) < 30000 Switch getLocation() Case "battle-auto" - If isPixel(getPixelArgs("battle-catch-available"), 10) = False Then + If isPixel(getArg($g_aPixels,"battle-catch-available"), 10) = False Then clickPoint(getArg($g_aPoints, "battle-auto")) Else clickPoint(getArg($g_aPoints, "battle-catch")) diff --git a/msl-bot/msl-bot.au3 b/msl-bot/msl-bot.au3 index 22848832..4df2e7c0 100644 --- a/msl-bot/msl-bot.au3 +++ b/msl-bot/msl-bot.au3 @@ -1,4 +1,4 @@ -Global $aVersion = [4, 0, 4] ;Major, Minor, Build +Global $aVersion = [4, 0, 5] ;Major, Minor, Build #pragma compile(Out, "msl-bot.exe") #pragma compile(Icon, "bin\_src\msl-bot.ico") @@ -7,8 +7,8 @@ Global $aVersion = [4, 0, 4] ;Major, Minor, Build #pragma compile(ProductName, "Monster Super League Bot") #pragma compile(FileDescription, "Open-sourced Monster Super League Bot - https://github.com/GkevinOD/msl-bot") #pragma compile(LegalCopyright, "Copyright (C) Kevin Quito") -#pragma compile(FileVersion, 4.0.4) -#pragma compile(ProductVersion, 4.0.4) +#pragma compile(FileVersion, 4.0.5) +#pragma compile(ProductVersion, 4.0.5) #pragma compile(OriginalFilename, "msl-bot.exe") #include-once