diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-03-08 14:11:35 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-03-08 14:11:35 +0000 |
commit | ab1cb1a8302dfbed055228eab43b890a5f919f81 (patch) | |
tree | 6ca14744ace5055744d4695e558c848f27f1fb2b | |
parent | 29c67b8f54918d4cadc174805be14bcbd273051e (diff) | |
download | hercules-ab1cb1a8302dfbed055228eab43b890a5f919f81.tar.gz hercules-ab1cb1a8302dfbed055228eab43b890a5f919f81.tar.bz2 hercules-ab1cb1a8302dfbed055228eab43b890a5f919f81.tar.xz hercules-ab1cb1a8302dfbed055228eab43b890a5f919f81.zip |
* Fixed @str/@agi/@vit/@int/@dex/@luk commands setting a stat to 0 (rather than 1), when exact amount is subtracted (bugreport:4803, since r14493).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14738 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/atcommand.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 549dd6ee7..481d83b04 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,5 +1,7 @@ Date Added +2011/03/08 + * Fixed @str/@agi/@vit/@int/@dex/@luk commands setting a stat to 0 (rather than 1), when exact amount is subtracted (bugreport:4803, since r14493). [Ai4rei] 2011/03/07 * Cleaned up packet dumping code. [Ai4rei] - Replaced utils function 'dump' with 'WriteDump' (files) and 'ShowDump' (console), and used those to replace inlined code in clif (related r10947). diff --git a/src/map/atcommand.c b/src/map/atcommand.c index ab55e952c..f063110d2 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3009,7 +3009,7 @@ ACMD_FUNC(param) status[4] = &sd->status.dex; status[5] = &sd->status.luk; - if(value < 0 && *status[i] < -value) + if(value < 0 && *status[i] <= -value) { new_value = 1; } |