maybe fix a maybe bug in maybe code that maybe will ever be run
This commit is contained in:
parent
de6208d264
commit
61f269f097
|
@ -154,11 +154,11 @@ namespace BizHawk.BizInvoke
|
|||
throw new InvalidOperationException("Out of Thunk memory");
|
||||
}
|
||||
|
||||
private int FindUsedIndex(object o)
|
||||
private int FindUsedIndex(object lifetime)
|
||||
{
|
||||
for (int i = 0; i < _refs.Length; i++)
|
||||
{
|
||||
if (_refs[i] == o)
|
||||
if (_refs[i]?.Target == lifetime)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue