Ink - Oct 23, 2014 11:00
[code=:0]
Program terminated with signal 8, Arithmetic exception.
#0 0x08229836 in status_change_start (src=0xabf6810, bl=0xabf6810,
type=SC_GENTLETOUCH_CHANGE, rate=10000, val1=5, val2=2002821,
val3=<value optimized out>, val4=0, tick=240000, flag=0) at status.c:8785
8785 val4 = ( 200/status_get_int(src2)?status_get_int(src2):1 ) * val1;// MDEF decrease: MDEF [(200 / Caster INT) x Skill Level]
(gdb) bt full
#0 0x08229836 in status_change_start (src=0xabf6810, bl=0xabf6810,
type=SC_GENTLETOUCH_CHANGE, rate=10000, val1=5, val2=2002821,
val3=<value optimized out>, val4=0, tick=240000, flag=0) at status.c:8785
src2 = 0xabf6810
sd = 0xabf6810
sc = 0xabf6b4c
sce = <value optimized out>
st = 0xabf6aec
vd = 0xabf6a74
opt_flag = <value optimized out>
calc_flag = 589826
undead_flag = 0
val_flag = 0
tick_time = 0
#1 0x081f5de8 in skill_castend_nodamage_id (src=0xabf6810, bl=0xabf6810,
skill_id=2347, skill_lv=5, tick=313552437, flag=0) at skill.c:8930
sd = <value optimized out>
dstsd = <value optimized out>
md = <value optimized out>
dstmd = 0x0
hd = <value optimized out>
mer = 0x0
sstatus = 0xabf6aec
---Type <return> to continue, or q <return> to quit---
tstatus = 0xabf6aec
tsc = 0xabf6b4c
tsce = 0x0
element = <value optimized out>
type = SC_GENTLETOUCH_CHANGE
#2 0x081ec3f5 in skill_castend_id (tid=1128, tick=313552437, id=2002821,
data=0) at skill.c:4964
target = <value optimized out>
src = 0xabf6810
sd = <value optimized out>
md = 0x0
ud = 0xabf6828
sc = <value optimized out>
inf = <value optimized out>
inf2 = <value optimized out>
flag = 0
#3 0x08254156 in do_timer (tick=313552443) at timer.c:397
tid = 1128
diff = -6
__FUNCTION__ = "do_timer"
#4 0x0824a07c in main (argc=1, argv=0xbfb67974) at core.c:255
next = <value optimized out>
retval = 0
[/code]
Ridley - Oct 23, 2014 21:05
map/status.c[code=auto:8785]
val4 = ( 200/status_get_int(src2)?status_get_int(src2):1 ) * val1;// MDEF decrease: MDEF [(200 / Caster INT) x Skill Level]
[/code]
is missing a ( )
try[code=auto:8785]
val4 = ( 200/(status_get_int(src2)?status_get_int(src2):1) ) * val1;// MDEF decrease: MDEF [(200 / Caster INT) x Skill Level]
[/code]
This post has been edited by
Ridley
on Oct 23, 2014 21:06
Michi - Oct 27, 2014 16:13
Fixed by Ridley: [url="https://github.com/Ridley8819/Hercules/commit/f17d1fca535916634a55cc63437ce37f21abe35c"]https://github.com/Ridley8819/Hercules/commit/f17d1fca535916634a55cc63437ce37f21abe35c[/url]
Thank you