unpacked: Don't list a position or length for directory entries.

This commit is contained in:
Ryan C. Gordon 2017-07-21 13:55:03 -04:00
parent d3ac612b61
commit 2dd3d7c28a
1 changed files with 2 additions and 2 deletions

View File

@ -264,8 +264,8 @@ void *UNPK_addEntry(void *opaque, char *name, const int isdir,
entry = (UNPKentry *) __PHYSFS_DirTreeAdd(&info->tree, name, isdir);
BAIL_IF_ERRPASS(!entry, NULL);
entry->startPos = pos;
entry->size = len;
entry->startPos = isdir ? 0 : pos;
entry->size = isdir ? 0 : len;
return entry;
} /* UNPK_addEntry */