diff options
author | CNLohr <charles@cnlohr.com> | 2018-01-15 11:19:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 11:19:47 -0500 |
commit | 8be34f04a100defc9d1958aa4ce63ef02d19db69 (patch) | |
tree | f293b454dceec027a67b9e670c1c2708e862c438 /src/poser_turveytori.c | |
parent | 6b565075dd0d48e663fbac5291387ed0dde46be6 (diff) | |
parent | c570809ce1d1cc1d30ef4db547e6388b3fd80ac1 (diff) | |
download | libsurvive-8be34f04a100defc9d1958aa4ce63ef02d19db69.tar.gz libsurvive-8be34f04a100defc9d1958aa4ce63ef02d19db69.tar.bz2 |
Merge pull request #94 from ChristophHaag/master
fix segfault in config_set_lighthouse() and various gcc warnings
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"); |