aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_find_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_find_item.c')
-rw-r--r--src/ft_find_item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_find_item.c b/src/ft_find_item.c
index 1c3e9a0..7332e19 100644
--- a/src/ft_find_item.c
+++ b/src/ft_find_item.c
@@ -41,7 +41,7 @@ static void
cl->weaps[weap_id][0].s_pos_x = 0;
cl->weaps[weap_id][0].s_pos_y = 0;
pl->has_weapon[weap_id] = 1;
- pl->handles_weapon = weap_id;
+ pl->handles_weapon = (weap_id == 1) ? (2) : (weap_id);
/* TODO: ft_sfx_weapon(3) */
}
}