From 93733c225cf2a534e6167f91bde281384514d95d Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Tue, 3 Feb 2026 14:31:33 +0300 Subject: [PATCH] Fix compilation error on Windows --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/World.cpp b/src/World.cpp index 1adc677..80dfa6d 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -341,7 +341,7 @@ void World::autosave_to_directory(const std::filesystem::path& directoryToSaveAt std::vector strList; for(auto& entry : std::filesystem::directory_iterator(directoryToSaveAt)) { if(entry.path().has_stem() && entry.path().has_extension() && entry.path().extension() == ("." + FILE_EXTENSION)) - strList.emplace_back(entry.path().stem()); + strList.emplace_back(entry.path().stem().string()); } std::string nameToSaveUnder = ensure_string_unique(strList, name); save_to_file(directoryToSaveAt / std::filesystem::path(nameToSaveUnder + "." + FILE_EXTENSION));