Skip to content

Commit c460459

Browse files
committed
Fixed typo on clif_get_weapon_view making sprite for shields and weapon not showing properly.
Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
1 parent c1fa550 commit c460459

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/map/clif.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,8 @@ static void clif_get_weapon_view(struct map_session_data *sd, int *rhand, int *l
983983
sd->inventory_data[sd->equip_index[EQI_HAND_R]])
984984
{
985985
struct item_data* id = sd->inventory_data[sd->equip_index[EQI_HAND_R]];
986-
if (id->view_id > 0)
987-
*rhand = id->view_id;
986+
if (id->view_sprite > 0)
987+
*rhand = id->view_sprite;
988988
else
989989
*rhand = id->nameid;
990990
} else
@@ -995,8 +995,8 @@ static void clif_get_weapon_view(struct map_session_data *sd, int *rhand, int *l
995995
sd->inventory_data[sd->equip_index[EQI_HAND_L]])
996996
{
997997
struct item_data* id = sd->inventory_data[sd->equip_index[EQI_HAND_L]];
998-
if (id->view_id > 0)
999-
*lhand = id->view_id;
998+
if (id->view_sprite > 0)
999+
*lhand = id->view_sprite;
10001000
else
10011001
*lhand = id->nameid;
10021002
} else

0 commit comments

Comments
 (0)