From c52fe35d4fa9bd4327cc73f08836ed63e19ba248 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 4 May 2024 16:38:15 +0200 Subject: Reformatted game_free() --- FICS/gamedb.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'FICS') diff --git a/FICS/gamedb.c b/FICS/gamedb.c index 66bc574..a0de48f 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -130,15 +130,18 @@ PUBLIC int game_zero(int g) return 0; } -PUBLIC int game_free(int g) +PUBLIC int +game_free(int g) { - if (garray[g].moveListSize) - rfree(garray[g].moveList); - if (garray[g].examMoveListSize) - rfree(garray[g].examMoveList); - garray[g].moveListSize = 0; - garray[g].examMoveListSize = 0; - return 0; + if (garray[g].moveListSize) + rfree(garray[g].moveList); + if (garray[g].examMoveListSize) + rfree(garray[g].examMoveList); + + garray[g].moveListSize = 0; + garray[g].examMoveListSize = 0; + + return 0; } PUBLIC int -- cgit v1.2.3