Index: /branches/eam_branches/ipp-20101205/psphot/src/psphotCheckStarDistribution.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psphot/src/psphotCheckStarDistribution.c	(revision 30167)
+++ /branches/eam_branches/ipp-20101205/psphot/src/psphotCheckStarDistribution.c	(revision 30168)
@@ -34,5 +34,5 @@
 	pmSource *source = stars->data[i];
         if (source->peak == NULL) continue;
-        if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
+        if (!(source->tmpFlags & PM_SOURCE_TMPF_CANDIDATE_PSFSTAR)) continue;
 
 	int binX = psImageBinningGetRuffX (binning, source->peak->xf);
@@ -85,5 +85,5 @@
         if (source->peak == NULL) continue;
         if (source->moments == NULL) continue;
-        if (source->mode & PM_SOURCE_MODE_PSFSTAR) continue;
+        if (source->tmpFlags & PM_SOURCE_TMPF_CANDIDATE_PSFSTAR) continue;
         if (source->mode & PM_SOURCE_MODE_SATSTAR) continue;
         if (source->type != PM_SOURCE_TYPE_STAR) continue;
@@ -97,5 +97,5 @@
 	if (y > Ye) continue;
 
-	source->mode |= PM_SOURCE_MODE_PSFSTAR;
+	source->tmpFlags |= PM_SOURCE_TMPF_CANDIDATE_PSFSTAR;
 	psArrayAdd (stars, 200, source);
 
