diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-04 16:38:15 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-04 16:38:15 +0200 |
commit | c52fe35d4fa9bd4327cc73f08836ed63e19ba248 (patch) | |
tree | f22f94e895bed8e5434f756ce5fb6d375c8af3a5 | |
parent | aff7f6b31a48f2223376427a88414b1fdd7e0b55 (diff) |
Reformatted game_free()
-rw-r--r-- | FICS/gamedb.c | 19 |
1 files changed, 11 insertions, 8 deletions
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 |