aboutsummaryrefslogtreecommitdiff
path: root/src/poser_epnp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poser_epnp.c')
-rw-r--r--src/poser_epnp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poser_epnp.c b/src/poser_epnp.c
index 632737b..7e86542 100644
--- a/src/poser_epnp.c
+++ b/src/poser_epnp.c
@@ -125,7 +125,7 @@ int PoserEPNP(SurviveObject *so, PoserData *pd) {
SurvivePose posers[2];
int meas[2] = {0, 0};
- for (int lh = 0; lh < 2; lh++) {
+ for (int lh = 0; lh < so->ctx->activeLighthouses; lh++) {
if (so->ctx->bsd[lh].PositionSet) {
epnp pnp = {.fu = 1, .fv = 1};
epnp_set_maximum_number_of_correspondences(&pnp, so->sensor_ct);