diff --git a/src/LibHac/IO/RomFs/RomFsDictionary.cs b/src/LibHac/IO/RomFs/RomFsDictionary.cs index fd64c93c..9c6a3cfd 100644 --- a/src/LibHac/IO/RomFs/RomFsDictionary.cs +++ b/src/LibHac/IO/RomFs/RomFsDictionary.cs @@ -49,7 +49,7 @@ namespace LibHac.IO.RomFs public bool TryGetValue(int offset, out RomKeyValuePair value) { - if (offset < 0 || offset + _sizeOfEntry >= Entries.Length) + if (offset < 0 || offset + _sizeOfEntry > Entries.Length) { value = default; return false;