diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-28 22:13:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-10-02 21:41:55 +0300 |
commit | 16b4e9a8a2ee0eae30d18bdf30ed0a24d85200bb (patch) | |
tree | 5e118e67499cf196526ecc3408a8eab296b8516f /src/map/achievement.c | |
parent | 4752716873b2fd25613d11be3ec0994f515165bd (diff) | |
download | hercules-16b4e9a8a2ee0eae30d18bdf30ed0a24d85200bb.tar.gz hercules-16b4e9a8a2ee0eae30d18bdf30ed0a24d85200bb.tar.bz2 hercules-16b4e9a8a2ee0eae30d18bdf30ed0a24d85200bb.tar.xz hercules-16b4e9a8a2ee0eae30d18bdf30ed0a24d85200bb.zip |
Fix achievement reward packet.
Diffstat (limited to 'src/map/achievement.c')
-rw-r--r-- | src/map/achievement.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/achievement.c b/src/map/achievement.c index 1fb513ea0..2450cfb49 100644 --- a/src/map/achievement.c +++ b/src/map/achievement.c @@ -1021,7 +1021,8 @@ static bool achievement_check_title(struct map_session_data *sd, int title_id) { * @param sd session data * @param ad achievement data */ -static void achievement_get_rewards(struct map_session_data *sd, const struct achievement_data *ad) { +static void achievement_get_rewards(struct map_session_data *sd, const struct achievement_data *ad) +{ int i = 0; struct achievement *ach = NULL; @@ -1062,8 +1063,8 @@ static void achievement_get_rewards(struct map_session_data *sd, const struct ac VECTOR_PUSH(sd->title_ids, ad->rewards.title_id); clif->achievement_send_list(sd->fd, sd); } else { - clif->achievement_reward_ack(sd->fd, sd, ad); clif->achievement_send_update(sd->fd, sd, ad); // send update. + clif->achievement_reward_ack(sd->fd, sd, ad); } } |