aboutsummaryrefslogtreecommitdiff
path: root/src/cell_explorer.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-04-02 15:00:59 -0700
committerThomas White <taw@physics.org>2015-04-20 12:53:58 +0200
commit3d281edaf2250f847bc8d287074ad506c92db2db (patch)
treecc13512676e47e9d1b8a58785fe428ee18a682d1 /src/cell_explorer.c
parent8d0df62255f44c912fb24fc648e78402dbff6155 (diff)
cell_explorer: Ensure initialisation of active_indms[]
Diffstat (limited to 'src/cell_explorer.c')
-rw-r--r--src/cell_explorer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cell_explorer.c b/src/cell_explorer.c
index 38203f70..923462bd 100644
--- a/src/cell_explorer.c
+++ b/src/cell_explorer.c
@@ -695,7 +695,8 @@ static void scan_minmax(CellWindow *w)
fprintf(stderr, "Too many indexing methods\n");
} else {
IndexingMethod m = w->indms[i];
- w->unique_indms[w->n_unique_indms++] = m;
+ w->unique_indms[w->n_unique_indms] = m;
+ w->active_indms[w->n_unique_indms++] = 1;
}
}