From 86354787809a85d57593dc6c1940262752d5b846 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 10 Mar 2006 13:35:11 +0000 Subject: - 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 --- src/map/status.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/status.c') 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; } -- cgit v1.2.3-70-g09d2