From 47a29f9c54bae64f395408c178167432f10d60b6 Mon Sep 17 00:00:00 2001 From: Matt Haynie Date: Tue, 16 Jun 2020 00:32:40 -0700 Subject: [PATCH] whoops --- CMakeLists.txt | 2 +- tf2_bot_detector/GithubAPI.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55bbfad2..66c3a24d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.1.0) -project(tf2_bot_detector VERSION 1.0.0.10) +project(tf2_bot_detector VERSION 1.0.0.11) set(JSON_BuildTests OFF) diff --git a/tf2_bot_detector/GithubAPI.cpp b/tf2_bot_detector/GithubAPI.cpp index 501af16c..b6c64560 100644 --- a/tf2_bot_detector/GithubAPI.cpp +++ b/tf2_bot_detector/GithubAPI.cpp @@ -75,8 +75,13 @@ static NewVersionResult GetLatestVersion() for (auto release : GetAllReleases()) { - if (release.m_Version < VERSION) + DebugLog("GetLatestVersion(): version = "s << release.m_Version << ", url = " << release.m_URL); + + if (release.m_Version <= VERSION) + { + DebugLog("GetLatestVersion(): break"); break; + } if (release.m_Version.m_Preview != 0) retVal.m_Preview = release;