summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-08-24 23:14:37 +0200
committerGitHub <noreply@github.com>2018-08-24 23:14:37 +0200
commitb64dac4392e312aacc09496941e929ebdbc749b3 (patch)
treec1ba470239820a17c858298a253cd4f2ef79b1c5
parent7f7b8060cba8f0aba60f43cf343bdf3f773f3438 (diff)
parent2d514d0837c83f9e55dc97cab961c08fa92cffef (diff)
downloadhercules-b64dac4392e312aacc09496941e929ebdbc749b3.tar.gz
hercules-b64dac4392e312aacc09496941e929ebdbc749b3.tar.bz2
hercules-b64dac4392e312aacc09496941e929ebdbc749b3.tar.xz
hercules-b64dac4392e312aacc09496941e929ebdbc749b3.zip
Merge pull request #2171 from dastgirp/fix/achievement
Fixed an achievement bug.
-rw-r--r--src/map/achievement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/achievement.c b/src/map/achievement.c
index 6abdb74ee..fe2c685b5 100644
--- a/src/map/achievement.c
+++ b/src/map/achievement.c
@@ -733,7 +733,7 @@ static void achievement_validate_zeny(struct map_session_data *sd, int amount)
achievement->validate_type(sd, ACH_ZENY_GET_ONCE, &criteria, false);
achievement->validate_type(sd, ACH_ZENY_GET_TOTAL, &criteria, true);
} else {
- criteria.goal = amount;
+ criteria.goal = -amount;
achievement->validate_type(sd, ACH_ZENY_SPEND_ONCE, &criteria, false);
achievement->validate_type(sd, ACH_ZENY_SPEND_TOTAL, &criteria, true);
}