city_generator2

Generated conformal 3D meshes representing a city
git clone git://git.meso-star.fr/city_generator2.git
Log | Files | Refs | README | LICENSE

commit 8b5fe5533a3f8b3d02b76cb6a01e6f0be4afa905
parent 943c920a4287aaca0e1c9d20d75f8592d2a4bebf
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed,  6 Mar 2024 16:34:06 +0100

Fix an invalid warning

Diffstat:
Msrc/cg_city.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cg_city.c b/src/cg_city.c @@ -709,12 +709,12 @@ city_cad_build(struct city* city) (void**)&cad); if(tmp_res != RES_OK) { - /* Call to build_cad failed. - * As a consequence no current_cad is empty and cad is NULL. + /* Call to build_cad failed (cad is NULL). * Any needed geometry must be created from here */ struct htable_building_iterator it, end; - ASSERT(darray_geometries_size_get(&current_cad) == 0); - /* We will need to close the hole in the ground: save it */ + ASSERT(cad == NULL); + darray_geometries_clear(&current_cad); + /* Help the user to close the hole in the ground: save it */ ERR1(save_ground_hole_patch_triangles(building, &city->ground.ground_patches)); building->event_flags |= BUILDING_GROUND_PATCH_CREATED; /* For every adjoining building that has considered this building, there