Skip to content

Commit

Permalink
Fixed|libdeng2|FS: Finding file with a partial path
Browse files Browse the repository at this point in the history
The logic for looking up files based on a partial path was incorrect.
  • Loading branch information
skyjake committed Dec 13, 2012
1 parent 02664a8 commit c6767e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/libdeng2/src/filesys/fs.cpp
Expand Up @@ -161,7 +161,7 @@ int FS::findAll(String const &path, FoundFiles &found) const
for(Index::const_iterator i = range.first; i != range.second; ++i)
{
File *file = i->second;
if(file->path().endsWith(dir))
if(file->path().fileNamePath().endsWith(dir))
{
found.push_back(file);
}
Expand Down

0 comments on commit c6767e1

Please sign in to comment.