From 2ffd8efbee6c4c41d559754c1dcefc4da3b66ef7 Mon Sep 17 00:00:00 2001 From: celest Date: Tue, 21 Dec 2004 17:30:03 +0000 Subject: Moved some code in pc_break_equip that was causing compile errors git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@704 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 1 + src/map/pc.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index b5f1a0b11..cad8451ac 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 12/21 + * Moved some code in pc_break_equip that was causing compile errors [celest] * guild skills vanished due to incorrect placement of a check for quest skills in the calc_skilltree code [MouseJstr] * Fixed skill LK_HEADCRUSH, LK_JOINTBEAT to work on both on diff --git a/src/map/pc.c b/src/map/pc.c index 5f55bfc51..076d72c18 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -637,13 +637,14 @@ int pc_break_equip(struct map_session_data *sd, unsigned short where) item=sd->inventory_data[i]; sd->status.inventory[i].attribute = 1; pc_unequipitem(sd,i,0); + sprintf(output, "%s has broken.",item->jname); + clif_emotion(&sd->bl,23); + clif_displaymessage(sd->fd, output); + clif_equiplist(sd); break; } } - sprintf(output, "%s has broken.",item->jname); - clif_emotion(&sd->bl,23); - clif_displaymessage(sd->fd, output); - clif_equiplist(sd); + return 0; } -- cgit v1.2.3-70-g09d2