From a5e204afe4995e440b440f376f2d69bd436df6cb Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 8 Jan 2022 18:12:36 -0800 Subject: [PATCH] I *love* windows..... --- hecl/lib/Blender/FindBlender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hecl/lib/Blender/FindBlender.cpp b/hecl/lib/Blender/FindBlender.cpp index 01eb76c5a..e14054747 100644 --- a/hecl/lib/Blender/FindBlender.cpp +++ b/hecl/lib/Blender/FindBlender.cpp @@ -161,10 +161,10 @@ std::optional FindBlender(int& major, int& minor) { } bool IsVersionSupported(int major, int minor) { - const auto* it = + auto it = std::find_if(SupportedVersions.cbegin(), SupportedVersions.cend(), [&major, &minor](const auto& version) { return version.Major == major && version.Minor == minor; }); - return it != nullptr; + return it != SupportedVersions.cend(); } std::pair GetLatestSupportedVersion() {