Skip to content
Snippets Groups Projects
Commit db7e831a authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

extra sanity check for habitat types

parent 816049f9
No related branches found
No related tags found
No related merge requests found
...@@ -107,8 +107,9 @@ double get_habitat_cc_multiplier(const struct habitat_layer_cc_aux *aux, int32_t ...@@ -107,8 +107,9 @@ double get_habitat_cc_multiplier(const struct habitat_layer_cc_aux *aux, int32_t
aux->max_code); aux->max_code);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
double result = aux->habitat_multipliers[habitat_type];
return aux->habitat_multipliers[habitat_type]; assert(result >= 0.0);
return result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment