Fixed: Opening local file with @ char in filename.

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-11-04 18:14:52 +02:00
parent 19e1b47ddb
commit edf1d12f65

View file

@ -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] == '@')