Index: trunk/ppSim/src/ppSimInsertGalaxies.c
===================================================================
--- trunk/ppSim/src/ppSimInsertGalaxies.c	(revision 34261)
+++ trunk/ppSim/src/ppSimInsertGalaxies.c	(revision 36862)
@@ -154,5 +154,5 @@
 
 	// XXX let the flux limit be a user-defined number of sky sigmas (not just 1.0)
-	float radius = model->modelRadius (model->params, 0.1*roughNoise);
+	float radius = model->class->modelRadius (model->params, 0.1*roughNoise);
 	radius = PS_MAX (radius, 1.0);
 
@@ -163,5 +163,5 @@
 	pmSource *source = pmSourceFromModel (model, readout, radius, PM_SOURCE_TYPE_EXTENDED);
 
-	galaxy->flux = model->modelFlux (model->params);
+	galaxy->flux = model->class->modelFlux (model->params);
 
 	// XXX set the mag & err values (should this be done in pmSourceFromModel?)
