summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-12-02 20:10:44 +0100
committerHaru <haru@dotalux.com>2016-12-03 15:38:56 +0100
commit0f5fdca8945ec3afd5ba2e67a9d414f1ef5565c3 (patch)
tree5f1bb716cdc3b44f9c2ffd6f909047657f234844 /src/map/pc.h
parent76801cdf48a979728034cb81b81c989f7f655f5a (diff)
downloadhercules-0f5fdca8945ec3afd5ba2e67a9d414f1ef5565c3.tar.gz
hercules-0f5fdca8945ec3afd5ba2e67a9d414f1ef5565c3.tar.bz2
hercules-0f5fdca8945ec3afd5ba2e67a9d414f1ef5565c3.tar.xz
hercules-0f5fdca8945ec3afd5ba2e67a9d414f1ef5565c3.zip
Ensure that pc->addfame() increments the correct fame points
The function now takes the rank type as argument, rather than guessing it from the character's class. If the wrong fame point type for the current character is requested, the request is ignored. This fixes some (unofficial) edge cases where a Taekwon or an Alchemist refined a signed item, they could obtain rank points. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 5b0cc4cba..f73a015ca 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -1003,7 +1003,7 @@ END_ZEROED_BLOCK; /* End */
int (*addspiritball) (struct map_session_data *sd,int interval,int max);
int (*delspiritball) (struct map_session_data *sd,int count,int type);
int (*getmaxspiritball) (struct map_session_data *sd, int min);
- void (*addfame) (struct map_session_data *sd,int count);
+ void (*addfame) (struct map_session_data *sd, int ranktype, int count);
int (*famerank) (int char_id, uint32 job);
int (*set_hate_mob) (struct map_session_data *sd, int pos, struct block_list *bl);