X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/b3408c3dda8258ff30605e6d9f35984ea077e3c7..e94d848e651d6f60607753a29ff62d1fb7337198:/rect.c?ds=inline diff --git a/rect.c b/rect.c index a7113af..439ae1f 100644 --- a/rect.c +++ b/rect.c @@ -1348,6 +1348,8 @@ static char *new_game_desc(game_params *params, random_state *rs, r1.x++; r1.w--; break; + default: /* should never happen */ + assert(!"invalid direction"); } if (r1.h > 0 && r1.w > 0) place_rect(params2, grid, r1);