mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Fix bug in ConbinationStream when reading across boundaries
This commit is contained in:
parent
fb089b0700
commit
e21c384a9c
@ -83,7 +83,7 @@ namespace LibHac.Streams
|
||||
break;
|
||||
}
|
||||
int idx = 0;
|
||||
while (idx+1 < _streamsStartPos.Count)
|
||||
while (idx + 1 < _streamsStartPos.Count)
|
||||
{
|
||||
if (_streamsStartPos[idx + 1] > pos)
|
||||
{
|
||||
@ -122,10 +122,11 @@ namespace LibHac.Streams
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
if (_currentStreamIndex >= _streams.Count)
|
||||
if (_currentStreamIndex + 1 >= _streams.Count)
|
||||
break;
|
||||
|
||||
_currentStream = _streams[_currentStreamIndex++];
|
||||
_currentStream = _streams[_currentStreamIndex + 1];
|
||||
_currentStreamIndex++;
|
||||
_currentStream.Position = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user