Fixed: Opening local file with @ char in filename.

--HG--
branch : develop
hg/compatibility-develop
Nimetu 6 years ago
parent 19e1b47ddb
commit edf1d12f65

@ -185,7 +185,7 @@ bool CIFile::open(const std::string &path, bool text)
// Bigfile or xml pack access requested ?
string::size_type pos;
if ((pos = path.find('@')) != string::npos)
if (!CFile::fileExists(path) && (pos = path.find('@')) != string::npos)
{
// check for a double @ to identify XML pack file
if (pos+1 < path.size() && path[pos+1] == '@')

Loading…
Cancel
Save