Skip to content

Commit

Permalink
Fix BulkDataStartOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
Archengius committed Aug 3, 2023
1 parent 6623813 commit b698aba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Private/CookedAssetWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ void FCookedAssetWriter::WritePackageHeader(FArchive& Ar, FAssetSerializationCon

// Update total header size
Context.Summary.TotalHeaderSize = (int32) Ar.Tell();
// Add TotalHeaderSize to the BulkDataStartOffset
Context.Summary.BulkDataStartOffset += Context.Summary.TotalHeaderSize;

// Fixup SerialOffset in ExportMap to take header size into account
{
Expand Down

0 comments on commit b698aba

Please sign in to comment.