From 9f1301df5a5d00c13a53912e09df3e316f74f76c Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 8 Aug 2012 20:05:47 +0100 Subject: [PATCH] Perhaps FileExists shouldn't erase file contents... --- src/client/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 56d436b00..740f1d604 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -230,7 +230,7 @@ bool Client::FileExists(std::string filename) bool exists = false; try { - std::ofstream fileStream; + std::ifstream fileStream; fileStream.open(string(filename).c_str(), ios::binary); if(fileStream.is_open()) {