diff options
author | Christoph Haag <haagch@frickel.club> | 2018-01-15 17:10:15 +0100 |
---|---|---|
committer | Christoph Haag <haagch@frickel.club> | 2018-01-15 17:12:05 +0100 |
commit | 91fc90bf9171fe588fd11492bdae7419d5ccd921 (patch) | |
tree | f520e618dbf22a091b9ca959835816a8704d5133 /src/poser_turveytori.c | |
parent | 6b565075dd0d48e663fbac5291387ed0dde46be6 (diff) | |
download | libsurvive-91fc90bf9171fe588fd11492bdae7419d5ccd921.tar.gz libsurvive-91fc90bf9171fe588fd11492bdae7419d5ccd921.tar.bz2 |
fix segfault in config_set_lighthouse()
also include the survive_config.h header to avoid various
implicit function declaration warnings on gcc
Diffstat (limited to 'src/poser_turveytori.c')
-rw-r--r-- | src/poser_turveytori.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/poser_turveytori.c b/src/poser_turveytori.c index ad30f6c..59ff25e 100644 --- a/src/poser_turveytori.c +++ b/src/poser_turveytori.c @@ -1,4 +1,5 @@ #include <survive.h> +#include <src/survive_config.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1868,8 +1869,8 @@ int PoserTurveyTori( SurviveObject * so, PoserData * poserData ) ctx->bsd[i].Pose.Rot[2], ctx->bsd[i].Pose.Rot[3]); } - config_set_lighthouse(ctx->lh_config, ctx->bsd[0], 0); - config_set_lighthouse(ctx->lh_config, ctx->bsd[1], 1); + config_set_lighthouse(ctx->lh_config, &ctx->bsd[0], 0); + config_set_lighthouse(ctx->lh_config, &ctx->bsd[1], 1); config_save(ctx, "config.json"); |