Consistently use snew_dsf to allocate dsfs.

All remaining cases where a dsf was allocated via snewn(foo, int) are
removed by this change.
This commit is contained in:
Simon Tatham
2023-04-20 13:56:44 +01:00
parent 11a8149d67
commit f21c7d2766
8 changed files with 11 additions and 13 deletions

View File

@ -3959,7 +3959,7 @@ static void game_print(drawing *dr, const game_state *state, int sz)
/*
* Get the completion information.
*/
dsf = snewn(w * h, int);
dsf = snew_dsf(w * h);
colours = snewn(w * h, int);
check_complete(state, dsf, colours);