summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-10 13:35:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-10 13:35:11 +0000
commit86354787809a85d57593dc6c1940262752d5b846 (patch)
tree313f47a603f277cfe1fa333a1d17d5765605c7fa /src/map/status.c
parent2aa039840a624a43d9d0051479d520b78636f8ca (diff)
downloadhercules-86354787809a85d57593dc6c1940262752d5b846.tar.gz
hercules-86354787809a85d57593dc6c1940262752d5b846.tar.bz2
hercules-86354787809a85d57593dc6c1940262752d5b846.tar.xz
hercules-86354787809a85d57593dc6c1940262752d5b846.zip
- Fixed a memory overwrite crash on pc_readdb, thanks to foobar.
- Fixed only the first TK stance triggering when you have multiple of them active. - Default of skill_attack_enable changed to yes. - Fixed a compiler error in some ninja skill that only triggers on windows or c++ compilers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5557 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index c37a1943a..1f9ea7a7c 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1721,8 +1721,7 @@ int status_calc_agi(struct block_list *bl, int agi)
agi -= 2 + sc->data[SC_DECREASEAGI].val1;
if(sc->data[SC_QUAGMIRE].timer!=-1)
agi -= sc->data[SC_QUAGMIRE].val1*(bl->type==BL_PC?5:10);
- int class = status_get_class(bl);
- if(sc->data[SC_SUITON].timer!=-1 || class != JOB_NINJA)
+ if(sc->data[SC_SUITON].timer!=-1 || status_get_class(bl) != JOB_NINJA)
agi -= (((sc->data[SC_SUITON].val1 - 1) / 3) + 1) * 3;
}