Index: trunk/psphot/src/psphotChoosePSF.c
===================================================================
--- trunk/psphot/src/psphotChoosePSF.c	(revision 4977)
+++ trunk/psphot/src/psphotChoosePSF.c	(revision 5048)
@@ -18,5 +18,5 @@
     for (int i = 0; i < sources->n; i++) {
 	pmSource *source = sources->data[i];
-	if (source->type != PS_SOURCE_PSFSTAR) continue;
+	if (source->type != PM_SOURCE_PSFSTAR) continue;
 	psArrayAdd (stars, 200, source);
     }
