aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index d4b3d6f..0052a60 100644
--- a/test.c
+++ b/test.c
@@ -118,7 +118,7 @@ static void dump_iface( struct SurviveObject * so, const char * prefix )
sprintf( fname, "%s_points.csv", prefix );
f = fopen( fname, "w" );
- for( i = 0; i < so->nr_locations; i++ )
+ for( i = 0; i < so->sensor_ct; i++ )
{
fprintf( f, "%g %g %g\n", so->sensor_locations[i*3+0], so->sensor_locations[i*3+1], so->sensor_locations[i*3+2] );
}
@@ -126,7 +126,7 @@ static void dump_iface( struct SurviveObject * so, const char * prefix )
sprintf( fname, "%s_normals.csv", prefix );
f = fopen( fname, "w" );
- for( i = 0; i < so->nr_locations; i++ )
+ for( i = 0; i < so->sensor_ct; i++ )
{
fprintf( f, "%g %g %g\n", so->sensor_normals[i*3+0], so->sensor_normals[i*3+1], so->sensor_normals[i*3+2] );
}