diff --git a/ARMeilleure/Common/EntryTable.cs b/ARMeilleure/Common/EntryTable.cs index eef8445a5..00d05c951 100644 --- a/ARMeilleure/Common/EntryTable.cs +++ b/ARMeilleure/Common/EntryTable.cs @@ -45,9 +45,9 @@ namespace ARMeilleure.Common _freeHint = _allocated.FindFirstUnset(); } - if (_freeHint < _table.Length) + if (_freeHint >= 0 && _freeHint < _table.Length) { - index = checked(_freeHint++); + index = _freeHint++; _allocated.Set(index);