Skip to content

Commit

Permalink
Fixed DOOMWADDIR path construction in createPackagesResourceNamespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 28, 2011
1 parent b3c3e53 commit 62eb660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions doomsday/engine/portable/src/p_materialmanager.c
Expand Up @@ -1408,10 +1408,11 @@ static size_t printMaterials2(materialnamespaceid_t mnamespace, const char* like
// Sort and print the index.
qsort(foundMaterials, count, sizeof(*foundMaterials), compareMaterialBindByName);

{ const materialbind_t** ptr;
{ materialbind_t* const* ptr;
for(ptr = foundMaterials; *ptr; ++ptr)
{
printMaterialInfo(*ptr, (mnamespace == MN_ANY));
const materialbind_t* mb = *ptr;
printMaterialInfo(mb, (mnamespace == MN_ANY));
}}

free(foundMaterials);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/sys_reslocator.c
Expand Up @@ -424,7 +424,7 @@ static void createPackagesResourceNamespace(void)
char last = Str_RAt(path, 0); \
ddstring_t* pathCopy = Str_New(); \
if(last != DIR_SEP_CHAR && last != DIR_WRONG_SEP_CHAR) \
Str_Appendf(doomWadDir, "%s"DIR_SEP_STR, (path)); \
Str_Appendf(doomWadDir, "%s"DIR_SEP_STR, Str_Text(path)); \
else \
Str_Copy(pathCopy, (path)); \
doomWadPaths = realloc(doomWadPaths, sizeof(*doomWadPaths) * ++doomWadPathsCount); \
Expand Down

0 comments on commit 62eb660

Please sign in to comment.