Skip to content

Commit

Permalink
fixed off-by-one (gotta love these lovely 1-based COM collections)
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Apr 21, 2016
1 parent 9508e47 commit b341c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rubberduck.Parsing/VBA/RubberduckParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void LoadComReferences(IEnumerable<VBProject> projects)
foreach (var vbProject in projects)
{
var projectId = vbProject.ProjectId();
for (var priority = 0; priority < vbProject.References.Count; priority++)
for (var priority = 1; priority <= vbProject.References.Count; priority++)
{
var reference = vbProject.References.Item(priority);
var referenceId = reference.ReferenceId();
Expand Down

0 comments on commit b341c34

Please sign in to comment.