mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Fix crashing non-stupidly.
This commit is contained in:
parent
ebb9100170
commit
d2086f7fc8
1 changed files with 1 additions and 6 deletions
|
|
@ -146,12 +146,7 @@ namespace Penumbra.Game
|
|||
idx = ~idx;
|
||||
}
|
||||
var endIdx = idx + 1;
|
||||
if( endIdx == list.Count )
|
||||
{
|
||||
return ( idx, endIdx );
|
||||
}
|
||||
|
||||
while( maskedKey == ( list[ endIdx ].Item1 & mask ) )
|
||||
while( endIdx < list.Count && maskedKey == ( list[endIdx].Item1 & mask ) )
|
||||
{
|
||||
++endIdx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue