Index: /branches/eam_branches/ipp-20100621/Ohana/src/addstar/src/find_matches_refstars.c
===================================================================
--- /branches/eam_branches/ipp-20100621/Ohana/src/addstar/src/find_matches_refstars.c	(revision 28847)
+++ /branches/eam_branches/ipp-20100621/Ohana/src/addstar/src/find_matches_refstars.c	(revision 28848)
@@ -218,5 +218,5 @@
     }
 
-    N = N1[i];
+    N = i;
     if (stars[N][0].found > -1) continue;
     if (!IN_REGION (stars[N][0].average.R, stars[N][0].average.D)) continue;
@@ -286,5 +286,5 @@
 
     for (j = 0; j < NREFSTAR_GROUP; j++) {
-      N = N1[i + j];
+      N = i + j;
 
       catalog[0].measure[Nmeas]          = stars[N][0].measure;
