summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cc4group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index f07cdeb..64c72c2 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -328,7 +328,7 @@ static bool buildChildren(CC4Group* const this, C4GroupEntryData* const entry, s
C4GroupEntryData* childEntry = &GroupEntryListAppend(entry->children, (C4GroupEntryData){.core = *core, .data = childData + core->Offset, .memoryManagement = cc4group.MemoryManagement.Reference, .children = NULL, .parent = entry, .absolutePosition = entry->absolutePosition + childDataOffset + core->Offset, .path = NULL})->value;
- if(this->readState.position < childEntry->absolutePosition)
+ if(this->readState.position < childEntry->absolutePosition + core->Size)
{
childEntry->data = NULL;
}