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 08da3c429e
commit 62b5fb70ed
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 */