Index: trunk/Ohana/src/addstar/src/find_matches.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches.c	(revision 34359)
+++ trunk/Ohana/src/addstar/src/find_matches.c	(revision 34361)
@@ -313,6 +313,4 @@
     if (stars[i].found > -1) {
       stars[i].found = -2;
-    } else {
-      stars[i].found = -3;
     }
   }
Index: trunk/Ohana/src/addstar/src/find_matches_closest.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 34359)
+++ trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 34361)
@@ -130,4 +130,10 @@
       j++;
       continue;
+    }
+
+    if (stars[N1[i]].found != -1) {
+        /* this star has already been assigned to an object in this or another catalog */
+        i++;
+        continue;
     }
 
@@ -249,5 +255,5 @@
     }
 
-    if (stars[i].found >= 0) continue;
+    if (stars[i].found != -1) continue;
     if (!IN_REGION (stars[i].average.R, stars[i].average.D)) continue;
 
@@ -315,6 +321,4 @@
     if (stars[i].found > -1) {
       stars[i].found = -2;
-    } else {
-      stars[i].found = -3;
     }
   }
Index: trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c	(revision 34359)
+++ trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c	(revision 34361)
@@ -320,6 +320,4 @@
     if (stars[i][0].found > -1) {
       stars[i][0].found = -2;
-    } else {
-      stars[i][0].found = -3;
     }
   }
