fix: segfault when changing level *
init_level() was called while room_loop()'s execution
This commit is contained in:
parent
bee91cfd7c
commit
f7ebb6b70c
4 changed files with 18 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/19 14:14:09 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/04/19 19:39:18 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -40,6 +40,7 @@ typedef struct s_env
|
|||
const t_const_string *levels;
|
||||
int level_count;
|
||||
int level_current;
|
||||
int level_to_load;
|
||||
// room
|
||||
t_room room;
|
||||
t_camera camera;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue