summaryrefslogtreecommitdiff
path: root/src/map/achievement.c
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-08-07 19:12:21 +0530
committerDastgir <dastgirp@gmail.com>2018-08-07 19:12:21 +0530
commit2d514d0837c83f9e55dc97cab961c08fa92cffef (patch)
treef8088b382eea4505fda411e6dba722f635a303ea /src/map/achievement.c
parentf3b156edbdf8a09afa95c65085e4e32df3884e07 (diff)
downloadhercules-2d514d0837c83f9e55dc97cab961c08fa92cffef.tar.gz
hercules-2d514d0837c83f9e55dc97cab961c08fa92cffef.tar.bz2
hercules-2d514d0837c83f9e55dc97cab961c08fa92cffef.tar.xz
hercules-2d514d0837c83f9e55dc97cab961c08fa92cffef.zip
Fixed an achievement bug.
ACH_ZENY_SPEND_* achievements were recording zeny in negative values. Thanks to Quazi for bringing this up.
Diffstat (limited to 'src/map/achievement.c')
-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);
}