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

butterflies: return early from maturation if no eggs are present

parent 98a3b147
Branches
Tags
No related merge requests found
......@@ -81,8 +81,9 @@ void bf_cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cat
data->eggs[row][col] -= eggs;
assert(data->eggs[row][col] >= 0);
assert(data->eggs[row][col] >= 0);
if (eggs == 0) return;
// not capped, we can have more adults than CC
struct conf_data_butterflies *module_conf = CATS_MODULE_DATA;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment