aboutsummaryrefslogtreecommitdiff
path: root/src/persistent_scene.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-15 23:39:30 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-15 23:39:30 -0600
commitb0c70158e8c2c7d2826368a2808c2a594f422821 (patch)
treef3b307877df8ed8f0fbb27ef4680304f4d761a1c /src/persistent_scene.c
parent6e67cc1996fbcba36e11cb281c78d3b00c4de85d (diff)
downloadlibsurvive-b0c70158e8c2c7d2826368a2808c2a594f422821.tar.gz
libsurvive-b0c70158e8c2c7d2826368a2808c2a594f422821.tar.bz2
Quick fix for merge issue
Diffstat (limited to 'src/persistent_scene.c')
-rw-r--r--src/persistent_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/persistent_scene.c b/src/persistent_scene.c
index 9bbbf41..cfc389f 100644
--- a/src/persistent_scene.c
+++ b/src/persistent_scene.c
@@ -21,7 +21,7 @@ void PersistentScene_add(PersistentScene *self, SurviveObject *so, PoserDataLigh
void PersistentScene_ForEachCorrespondence(PersistentScene *self, PersistentScene_ForEachCorrespondence_fn fn,
SurviveObject *so, uint32_t timecode_now, void *user) {
for (int lh = 0; lh < NUM_LIGHTHOUSES; lh++) {
- for (size_t i = 0; i < so->nr_locations; i++) {
+ for (size_t i = 0; i < so->sensor_ct; i++) {
if (PersistentScene_isStillValid(self, timecode_now, i, lh)) {
double *pts = self->angles[i][lh];
fn(so, lh, i, pts, user);