diff options
author | Dastgir <dastgirp@gmail.com> | 2018-08-07 19:12:21 +0530 |
---|---|---|
committer | Dastgir <dastgirp@gmail.com> | 2018-08-07 19:12:21 +0530 |
commit | 2d514d0837c83f9e55dc97cab961c08fa92cffef (patch) | |
tree | f8088b382eea4505fda411e6dba722f635a303ea | |
parent | f3b156edbdf8a09afa95c65085e4e32df3884e07 (diff) | |
download | hercules-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.
-rw-r--r-- | src/map/achievement.c | 2 |
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); } |