diff --git a/src/resource_manager.cpp b/src/resource_manager.cpp index 1e992ad..6a26296 100644 --- a/src/resource_manager.cpp +++ b/src/resource_manager.cpp @@ -19,7 +19,7 @@ std::string getCurrentDirectory() { std::unique_ptr buffer = std::unique_ptr(new char[length + 1]); wai_getExecutablePath(buffer.get(), length, &dirname_length); - if (dirname_length == 0) { + if (length == 0) { throw std::runtime_error("Impossible de déterminer le chemin actuel"); }