diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-11 13:11:27 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-11 13:11:27 +0100 |
| commit | 2fdb9ad1d66e28e056f31bc6321d2c198db33290 (patch) | |
| tree | c3c32462b6a09f1a9f393cc0216c2ffe3bdaaa09 /state.c | |
| parent | cff05e83256a67b8cb23b16b1e1e6f761ff52f4c (diff) | |
| download | cub3d-2fdb9ad1d66e28e056f31bc6321d2c198db33290.tar.gz cub3d-2fdb9ad1d66e28e056f31bc6321d2c198db33290.tar.bz2 cub3d-2fdb9ad1d66e28e056f31bc6321d2c198db33290.zip | |
Error messages with error helper
Diffstat (limited to 'state.c')
| -rw-r--r-- | state.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/19 16:39:57 by cacharle #+# #+# */ -/* Updated: 2020/01/11 12:32:13 by cacharle ### ########.fr */ +/* Updated: 2020/01/11 13:10:45 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,7 +31,7 @@ t_state *state_new(t_state *state) { load_texture(state->mlx_ptr, &state->textures[i], state->textures_path[i]); if (state->textures[i].id == NULL) - return (state_destroy(state)); + return (error_put_return_state_destroy("load texture", state)); } if ((state->window.id = mlx_new_image(state->mlx_ptr, state->window.width, state->window.height)) == NULL) |
