mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Fix save data off-by-one error
This commit is contained in:
parent
fa91eea11d
commit
4a65a5da20
@ -17,7 +17,9 @@ namespace LibHac.IO.Save
|
||||
Header = new AllocationTableHeader(HeaderStorage);
|
||||
|
||||
Stream tableStream = storage.AsStream();
|
||||
int blockCount = (int)(Header.AllocationTableBlockCount);
|
||||
|
||||
// The first entry in the table is reserved. Block 0 is at table index 1
|
||||
int blockCount = (int)(Header.AllocationTableBlockCount) + 1;
|
||||
|
||||
Entries = new AllocationTableEntry[blockCount];
|
||||
tableStream.Position = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user