diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 18:13:58 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 18:13:58 +0100 |
commit | a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c (patch) | |
tree | dcc5486fade996dc2a320d0d62f918cf85cf3bec | |
parent | Pretty good (diff) | |
download | 42-cub3d-a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c.tar.gz 42-cub3d-a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c.tar.bz2 42-cub3d-a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c.tar.xz 42-cub3d-a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c.tar.zst 42-cub3d-a97b1cb8d0b91d2d4c8585b5089b2d8180e31a4c.zip |
Pretty fine
-rw-r--r-- | src/ft_key_events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c index 188a770..82235fc 100644 --- a/src/ft_key_events.c +++ b/src/ft_key_events.c @@ -41,12 +41,12 @@ ft_key_event(int keycode, void *param) fun_ptr[3] = ft_w_key; ft_printf("Key [%d] pressed\n", keycode); (keycode == 13) ? (keycode = 3) : 0; - (keycode <= 3) ? (*fun_ptr[keycode])() : 0; + (keycode <= 3) ? ((*fun_ptr[keycode])()) : 0; if (keycode == 53) { ft_memdel(((t_winlist*)param)->wlx); ft_memdel(((t_winlist*)param)->winptr); - ft_memdel(((t_winlist*)param)); + ft_memdel((t_winlist*)param); ft_printf("Exiting program\n"); exit(0); } |