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() {