Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/map/achievement.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ static void achievement_progress_add(struct map_session_data *sd, const struct a

// Check if the Achievement is complete.
if (achievement->check_complete(sd, ad)) {
achievement->validate_achieve(sd, ad->id);
if ((ach = achievement->ensure(sd, ad)) == NULL)
return;
ach->completed_at = time(NULL);
achievement->validate_achieve(sd, ad->id);
}

// update client.
Expand Down Expand Up @@ -233,10 +233,10 @@ static void achievement_progress_set(struct map_session_data *sd, const struct a
ach->objective[obj_idx] = VECTOR_INDEX(ad->objective, obj_idx).goal;

if (achievement->check_complete(sd, ad)) {
achievement->validate_achieve(sd, ad->id);
if ((ach = achievement->ensure(sd, ad)) == NULL)
return;
ach->completed_at = time(NULL);
achievement->validate_achieve(sd, ad->id);
}

clif->achievement_send_update(sd->fd, sd, ad);
Expand Down
Loading