Skip to content

Commit 7784d94

Browse files
committed
Fix divide by zero when no alignment
1 parent 5d63fa7 commit 7784d94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Yura.Shared/Archive/DeusExArchive.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public override void Open()
1919

2020
// Read the header
2121
_alignment = reader.ReadUInt32();
22+
if (_alignment == 0) _alignment = 0x7FF00000;
2223

2324
// Skip over the config name
2425
reader.Position += 64;

0 commit comments

Comments
 (0)