summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-26 01:42:10 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-26 01:42:10 +0000
commit0f59bb06f026537c6527b7b9e18528f15e49be3b (patch)
tree857f132a3432cb97ae791449e3b4251fb9d90cf5 /src/map/clif.c
parentc270812e8cf450eb53c03bd018e943cf04abbf11 (diff)
downloadhercules-0f59bb06f026537c6527b7b9e18528f15e49be3b.tar.gz
hercules-0f59bb06f026537c6527b7b9e18528f15e49be3b.tar.bz2
hercules-0f59bb06f026537c6527b7b9e18528f15e49be3b.tar.xz
hercules-0f59bb06f026537c6527b7b9e18528f15e49be3b.zip
Added the merges proposed in evilpuncker's list of suggestions: http://rathena.org/board/topic/63001-my-rathena-suggestions/page__st__20#entry124218
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16500 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index b3bbb5a69..c9a8a685c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5821,22 +5821,20 @@ void clif_item_repair_list(struct map_session_data *sd,struct map_session_data *
/// Notifies the client about the result of a item repair request (ZC_ACK_ITEMREPAIR).
/// 01fe <index>.W <result>.B
-void clif_item_repaireffect(struct map_session_data *sd,int nameid,int flag)
+void clif_item_repaireffect(struct map_session_data *sd,int idx,int flag)
{
- int view,fd;
+ int fd;
nullpo_retv(sd);
- fd=sd->fd;
+
+ fd = sd->fd;
WFIFOHEAD(fd,packet_len(0x1fe));
WFIFOW(fd, 0)=0x1fe;
- // FIXME: this is inventory index
- if((view = itemdb_viewid(nameid)) > 0)
- WFIFOW(fd, 2)=view;
- else
- WFIFOW(fd, 2)=nameid;
+ WFIFOW(fd, 2)=idx+2;
WFIFOB(fd, 4)=flag;
WFIFOSET(fd,packet_len(0x1fe));
+
}