Skip to content

Commit

Permalink
fix #5357
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Sep 27, 2016
1 parent 1798698 commit b547438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/System/FileSystem/FileHandler.cpp
Expand Up @@ -113,19 +113,19 @@ bool CFileHandler::TryReadFromVFS(const string& fileName, int section)
void CFileHandler::Open(const string& fileName, const string& modes)
{
this->fileName = fileName;
#ifndef TOOLS
for (char c: modes) {
#ifndef TOOLS
CVFSHandler::Section section = CVFSHandler::GetModeSection(c);
if ((section != CVFSHandler::Section::Error) && TryReadFromVFS(fileName, section))
break;

if ((c == SPRING_VFS_RAW[0]) && TryReadFromRawFS(fileName))
break;

#endif
if ((c == SPRING_VFS_PWD[0]) && TryReadFromPWD(fileName))
break;
}
#endif
}


Expand Down

2 comments on commit b547438

@abma
Copy link
Contributor

@abma abma commented on b547438 Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@ashdnazg
Copy link
Member Author

@ashdnazg ashdnazg commented on b547438 Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, I messed it up so it only makes sense I'll fix it :)

Please sign in to comment.