mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fix save data off-by-one error
This commit is contained in:
parent
fa91eea11d
commit
4a65a5da20
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue