Fixed windows build

This commit is contained in:
Yousef Khadadeh 2026-04-11 11:17:26 +03:00
parent f78db24f49
commit da1a1c26cb
7 changed files with 11 additions and 11 deletions

View file

@ -469,7 +469,7 @@ void World::save_to_file(const std::filesystem::path& filePathToSaveAt) {
f.view()
);
#else
if(!SDL_SaveFile(filePath.c_str(), f.view().data(), f.view().size()))
if(!SDL_SaveFile(filePath.string().c_str(), f.view().data(), f.view().size()))
throw std::runtime_error("SDL_SaveFile failed with error: " + std::string(SDL_GetError()));
#endif