From 9b77d7b5e2edded37106b02cf604fe5a20822fe7 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 17 Jun 2022 10:31:28 +0200 Subject: [PATCH] fix: MacOS build error --- lib/libimhex/source/helpers/fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libimhex/source/helpers/fs.cpp b/lib/libimhex/source/helpers/fs.cpp index 9747b2841..3e4903aec 100644 --- a/lib/libimhex/source/helpers/fs.cpp +++ b/lib/libimhex/source/helpers/fs.cpp @@ -187,8 +187,8 @@ namespace hex::fs { std::vector paths = { applicationSupportDir }; - if (exePath) - paths.push_back(exePath); + if (exePath.has_value() + paths.push_back(exePath.value()); switch (path) { case ImHexPath::Patterns: