Issue Information
-
#008237
-
2 - Fair
-
Fixed
Issue Confirmations
-
Yes (2)No (0)
Issue:
Similar with this. Map Server Crash
How to Reproduce:
Create a new character named Test
@job 4045
@joblvlup 99
@allskills
Then, type this
@clone Test
@evilclone Test
They will vs each other. Create 1 clone/evilclone and wait. Map server will crash.
Similar with this. Map Server Crash
How to Reproduce:
Create a new character named Test
@job 4045
@joblvlup 99
@allskills
Then, type this
@clone Test
@evilclone Test
They will vs each other. Create 1 clone/evilclone and wait. Map server will crash.
the problem is here
md->target_id = tbl->id;
unable to read *tbl
if (battle->check_range (&md->bl, tbl, md->status.rhw.range)) { //Target within range, engage if(tbl->type == BL_PC) mob->log_damage(md, tbl, 0); //Log interaction (counts as 'attacker' for the exp bonus) if(!(mode&MD_RANDOMTARGET)) unit->attack(&md->bl,tbl->id,1); else { // Attack once and find new random target int search_size = (view_range < md->status.rhw.range) ? view_range : md->status.rhw.range; unit->attack(&md->bl,tbl->id,0); tbl = battle->get_enemy(&md->bl, DEFAULT_ENEMY_TYPE(md), search_size); md->target_id = tbl->id; md->min_chase = md->db->range3; } return true; }
md->target_id = tbl->id;
unable to read *tbl
i think this is serious problem
if any monster with mode randomtarget can cause this error
if any monster with mode randomtarget can cause this error
Up
this is how to fix
I hope this fixed
change :
I hope this fixed
change :
tbl = battle->get_enemy(&md->bl, DEFAULT_ENEMY_TYPE(md), search_size); md->target_id = tbl->id; md->min_chase = md->db->range3;to
if (tbl = battle->get_enemy(&md->bl, DEFAULT_ENEMY_TYPE(md), search_size)){ md->target_id = tbl->id; md->min_chase = md->db->range3; }
Edited by Kichi, 02 July 2014 - 04:41 AM.
This was already fixed some time ago in https://github.com/H...a96b528ee4aa461
Thank you for reporting and for the feedback
Thank you for reporting and for the feedback
changed status to: Fixed