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: