diff --git a/src/FindFile.h b/src/FindFile.h index 2244ea14b..44780dc33 100644 --- a/src/FindFile.h +++ b/src/FindFile.h @@ -185,7 +185,7 @@ FILE* OpenGameFile(const std::string& path, const char *mode); FILE* OpenAbsFile(const std::string& path, const char *mode); bool OpenGameFileR(std::ifstream& f, const std::string& path, std::ios_base::openmode mode = std::ios_base::in); -bool OpenGameFileW(std::ofstream& f, const std::string& path, std::ios_base::openmode mode = std::ios_base::in); +bool OpenGameFileW(std::ofstream& f, const std::string& path, std::ios_base::openmode mode = std::ios_base::out); std::string GetFileContents(const std::string& path, bool absolute = false);