-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/controller/actions/sel_save.sqc | 3 | ||||
-rw-r--r-- | src/controller/callbacks/mouse.c | 10 | ||||
-rw-r--r-- | src/model/data/base.sqc | 3 |
5 files changed, 12 insertions, 7 deletions
diff --git a/src/model/data/base.sqc b/src/model/data/base.sqc index ad1c395..f15d18b 100644 --- a/src/model/data/base.sqc +++ b/src/model/data/base.sqc @@ -69,7 +69,8 @@ base (void) { int i = coordinates.coord_id - 1; - strncpy (S.gi_data + i, coordinates.gi.data, sizeof (S.gi_data[i])); + char *gi_data_row = S.gi_data + (i * 20); + strncpy (gi_data_row, coordinates.gi.data, sizeof (char) * 20); float *v = S.base_vertices_data + (i * 2); *v = coordinates.x; |