Skip to content

Commit

Permalink
LumpDirectory|Fixed: Search pattern was re-mapped unnecessarily
Browse files Browse the repository at this point in the history
LumpDirectory::IndexForPath would re-map the search pattern each
time it was compared against a path in the hash chain.
  • Loading branch information
danij-deng committed Jan 17, 2012
1 parent 72f1348 commit c857136
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/engine/portable/src/lumpdirectory.c
Expand Up @@ -362,7 +362,10 @@ lumpnum_t LumpDirectory_IndexForPath(LumpDirectory* ld, const char* path)

// Time to build the pattern?
if(!builtSearchPattern)
{
PathMap_Initialize(&searchPattern, path);
builtSearchPattern = true;
}

if(PathDirectoryNode_MatchDirectory(node, 0, &searchPattern, NULL/*no paramaters*/))
{
Expand Down

0 comments on commit c857136

Please sign in to comment.