From 8e360fa971ed3d78ab72f30929fc28c881547ae4 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 21 Feb 2022 15:29:32 -0500 Subject: [PATCH] Fix MinGW compiler error --- engine/core/src/imgui_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/core/src/imgui_backend.cpp b/engine/core/src/imgui_backend.cpp index ee55afd..3036439 100644 --- a/engine/core/src/imgui_backend.cpp +++ b/engine/core/src/imgui_backend.cpp @@ -234,7 +234,7 @@ void imgui_backend::begin_frame(const float delta_time) { } for(const auto& dir_ent : std::filesystem::directory_iterator(data.current_path)) { - if(ImGui::Selectable(dir_ent.path().c_str(), data.selected_path == dir_ent.path(), ImGuiSelectableFlags_DontClosePopups)) { + if(ImGui::Selectable(dir_ent.path().string().c_str(), data.selected_path == dir_ent.path(), ImGuiSelectableFlags_DontClosePopups)) { if(dir_ent.is_directory()) data.current_path = dir_ent.path(); else