summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-08 14:11:35 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-08 14:11:35 +0000
commitab1cb1a8302dfbed055228eab43b890a5f919f81 (patch)
tree6ca14744ace5055744d4695e558c848f27f1fb2b /src/map/atcommand.c
parent29c67b8f54918d4cadc174805be14bcbd273051e (diff)
downloadhercules-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
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
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;
}