Skip to content

Commit

Permalink
Check for identity instead of equality
Browse files Browse the repository at this point in the history
should fix native builds
  • Loading branch information
DieKautz committed Feb 5, 2024
1 parent 3b1b752 commit 78a3191
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ private int addObjectToRegistry(final Object object) {
}

private int oopFor(final Object object) {
int oop = objectRegistry.indexOf(object);
if (oop < 0) {
oop = addObjectToRegistry(object);
for (int oop = 0; oop < objectRegistry.size(); oop++) {
if (objectRegistry.get(oop) == object) {
return oop;
}
}
return oop;
return addObjectToRegistry(object);
}

///////////////////
Expand Down

0 comments on commit 78a3191

Please sign in to comment.