aboutsummaryrefslogtreecommitdiff
path: root/src/poser_general_optimizer.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-06-23 14:04:06 -0400
committercnlohr <lohr85@gmail.com>2018-06-23 14:04:06 -0400
commitcb06bbdba6cefc042f32985000f1ef03aafdb9a9 (patch)
tree7082aec6c8e37ee47970aa7f4b019f44e79e37cd /src/poser_general_optimizer.c
parent9291b950c5508513ea261059229e19760c050a47 (diff)
downloadlibsurvive-cb06bbdba6cefc042f32985000f1ef03aafdb9a9.tar.gz
libsurvive-cb06bbdba6cefc042f32985000f1ef03aafdb9a9.tar.bz2
Fix config in master.
Diffstat (limited to 'src/poser_general_optimizer.c')
-rw-r--r--src/poser_general_optimizer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/poser_general_optimizer.c b/src/poser_general_optimizer.c
index 186b359..6f181a3 100644
--- a/src/poser_general_optimizer.c
+++ b/src/poser_general_optimizer.c
@@ -17,9 +17,9 @@ void general_optimizer_data_init(GeneralOptimizerData *d, SurviveObject *so) {
SurviveContext *ctx = so->ctx;
- survive_attach_config( ctx, "failures-to-reset", &d->failures_to_reset, 'i' );
- survive_attach_config( ctx, "successes-to-reset", &d->successes_to_reset, 'i' );
- survive_attach_config( ctx, "max-error", &d->max_error, 'f' );
+ survive_attach_configf( ctx, "max-error", &d->max_error );
+ survive_attach_configi( ctx, "failures-to-reset", &d->failures_to_reset );
+ survive_attach_configi( ctx, "successes-to-reset", &d->successes_to_reset );
const char *subposer = survive_configs(ctx, "seed-poser", SC_GET, 0 );
d->seed_poser = (PoserCB)GetDriver(subposer);