Commit b2f2a788 authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[BUG][FIX] User state where allocated at the size of number of joints

parent 521157f4
......@@ -1572,7 +1572,7 @@ void mbs_info_structurer(MbsInfos *mbs_infos)
mbs_infos->sensor_point_list = get_ivec_0(mbs_infos->n_sensor);
mbs_infos->extforce_point_list = get_ivec_0(mbs_infos->n_extforce);
mbs_infos->state_list = (MbsInfoParameter**)malloc(mbs_infos->n_point * sizeof(MbsInfoParameter*));
mbs_infos->state_list = (MbsInfoParameter**)malloc(mbs_infos->n_state * sizeof(MbsInfoParameter*));
for (i = 0; i < mbs_infos->base->n_base_point; i++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment