summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-08 19:05:47 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-08 19:05:47 (GMT)
commit9f1301df5a5d00c13a53912e09df3e316f74f76c (patch)
treed05ac59446104f098e18817cd58f7cd6921a4dd3 /src/client/Client.cpp
parent346e9d21689c9616dae3f3d858071b7181979663 (diff)
downloadpowder-9f1301df5a5d00c13a53912e09df3e316f74f76c.zip
powder-9f1301df5a5d00c13a53912e09df3e316f74f76c.tar.gz
Perhaps FileExists shouldn't erase file contents...
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 56d436b..740f1d6 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())
{