Skip to content

Commit

Permalink
Update humanio.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbau committed Aug 13, 2023
1 parent 84480ca commit b07fafd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/humanio.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,7 @@ int SARHumanLoadFromFile(sar_human_data_struct *hd, const char *filename)
{
FGetValuesF(fp, value, 1);
if(hdp_ptr != NULL)
{
hdp_ptr->assisting_humans =
(
(MAX((int)value[0], 0) < SAR_ASSISTING_HUMANS_MAX)
? MAX((int)value[0], 0) : SAR_ASSISTING_HUMANS_MAX
);
}
hdp_ptr->assisting_humans = CLIP((int)value[0], 0, SAR_ASSISTING_HUMANS_MAX);
}


Expand Down

0 comments on commit b07fafd

Please sign in to comment.