summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-05-13 15:55:16 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-05-13 15:55:16 -0700
commitfe7bce3a25167d1cc7c99681b07a804e899a08e3 (patch)
tree285a4872b153b81625e8d02d6b7d7c0ad3383830 /src
parentfcd1731e39bdce214d79f64fab33554345a3d5da (diff)
game: simplify pad_free() usage
Cosmetic change getting rid of a FIXME from the code
Diffstat (limited to 'src')
-rw-r--r--src/game.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index e8e1c77..e17f5d5 100644
--- a/src/game.c
+++ b/src/game.c
@@ -450,8 +450,7 @@ static void reset_game(game_t *game)
ix2_reset(game->ix2);
stage_free(game->game_node);
- if (game->pad) /* XXX FIXME: this is a stupidty in libpad */
- pad_free(game->pad);
+ game->pad = pad_free(game->pad);
game->game_node = stage_new(&(stage_conf_t){ .parent = game->stage, .name = "game", .active = 1, .alpha = 1.f }, NULL, NULL);
© All Rights Reserved