Skip to content

Commit

Permalink
Merge pull request #53 from Nexus-Mods/collections-end-inclusive
Browse files Browse the repository at this point in the history
Fix a bug with collections attributes being end inclusive
  • Loading branch information
halgari authored May 4, 2024
2 parents 253b33b + 7f88602 commit b7a5c73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public Values<TValue, TLowLevel> Get(IEntity ent)
if (datom.A != dbId) continue;

var start = i;
while (i < segment.Count && segment[i].A == dbId)
while (i < segment.Count - 1 && segment[i].A == dbId)
{
i++;
}
Expand Down

0 comments on commit b7a5c73

Please sign in to comment.