diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-01 17:23:03 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-01 17:23:03 +0200 |
commit | 623c6af72b22aca4bc43009b7039640595521b2e (patch) | |
tree | b3a9896b06552f385c9bc2f536588e31b609fdcb /src/ft_damage_bad_boy.c | |
parent | Killing skeltons gives ammo, but still segv (diff) | |
download | 42-cub3d-623c6af72b22aca4bc43009b7039640595521b2e.tar.gz 42-cub3d-623c6af72b22aca4bc43009b7039640595521b2e.tar.bz2 42-cub3d-623c6af72b22aca4bc43009b7039640595521b2e.tar.xz 42-cub3d-623c6af72b22aca4bc43009b7039640595521b2e.tar.zst 42-cub3d-623c6af72b22aca4bc43009b7039640595521b2e.zip |
Still segv but solved invalid read
Diffstat (limited to 'src/ft_damage_bad_boy.c')
-rw-r--r-- | src/ft_damage_bad_boy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_damage_bad_boy.c b/src/ft_damage_bad_boy.c index bf2f179..c404e94 100644 --- a/src/ft_damage_bad_boy.c +++ b/src/ft_damage_bad_boy.c @@ -48,7 +48,7 @@ void cl->sfx[13].sfx_play(cl->sfx); cl->bad_boy[id].isdead = 1; cl->mlist.map[lround(cl->sprites[13][id].s_pos_y)] - [lround(cl->sprites[13][id].s_pos_x)] = '#'; + [lround(cl->sprites[13][id].s_pos_x)] = 'x'; } else if (cl->bad_boy[id].does != 3) cl->sfx[14].sfx_play(cl->sfx); |