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

butterflies: add explicit brackets

parent b346f739
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,8 @@ enum action_status bf_grid_overlay_update(const struct cats_configuration *conf, ...@@ -49,8 +49,8 @@ enum action_status bf_grid_overlay_update(const struct cats_configuration *conf,
cells_resource_ok += 1; cells_resource_ok += 1;
} }
if (data->info_layer[row][col] & BF_CELL_HABITAT_OK && if ((data->info_layer[row][col] & BF_CELL_HABITAT_OK) &&
data->info_layer[row][col] & BF_CELL_RESOURCE_AVAILABLE) { (data->info_layer[row][col] & BF_CELL_RESOURCE_AVAILABLE)) {
data->info_layer[row][col] |= BF_CELL_VALID_DISPERSAL_TARGET; data->info_layer[row][col] |= BF_CELL_VALID_DISPERSAL_TARGET;
cells_habitat_and_resource_ok += 1; cells_habitat_and_resource_ok += 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment