From 2f6f5df38853bf21b61eec2cde8994df90f5460d Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 18 May 2011 21:56:07 +0000 Subject: [PATCH] - bugfix for linux variable named wrong --- source/shared_lib/include/graphics/FileReader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/include/graphics/FileReader.h b/source/shared_lib/include/graphics/FileReader.h index 13fe5957c..f65d8af11 100644 --- a/source/shared_lib/include/graphics/FileReader.h +++ b/source/shared_lib/include/graphics/FileReader.h @@ -184,14 +184,14 @@ static inline T* readFromFileReaders(vector const *>* readers, con int fileErrno = errno; ifstream file(fp); #else - ifstream file(friendly_path.c_str(), ios::in | ios::binary); + ifstream file(filepath.c_str(), ios::in | ios::binary); #endif if (!file.is_open()) { //An error occured; TODO: Which one - throw an exception, print error message? #ifdef WIN32 DWORD error = GetLastError(); throw runtime_error("Could not open file, result: " + intToStr(error) + " - " + intToStr(fileErrno) + " [" + filepath + "]"); #else - throw runtime_error("Could not open file [" + friendly_path + "]"); + throw runtime_error("Could not open file [" + filepath + "]"); #endif } for (typename vector const *>::const_iterator i = readers->begin(); i != readers->end(); ++i) {