commit bc869984c3cd5feef718392f4127fe1d7f0dae8c
parent 44f9477a33372b08113648ae17613103cfc9f6b1
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Sun, 7 May 2023 19:18:03 +0200
lil fix
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/build/build.c b/build/build.c
@@ -131,10 +131,12 @@ gen_coord(Coordinate *coord)
return;
fprintf(stderr, "%s: gen_coord started\n", coord->name);
- for (i = 0; coord->base[i] != NULL; i++) {
- fprintf(stderr, "%s: generating base[%d] = %s\n",
- coord->name, i, coord->base[i]->name);
- gen_coord(coord->base[i]);
+ for (i = 0; i < 2; i++) {
+ if (coord->base[i] != NULL) {
+ fprintf(stderr, "%s: generating base[%d] = %s\n",
+ coord->name, i, coord->base[i]->name);
+ gen_coord(coord->base[i]);
+ }
}
switch (coord->type) {