Skip to content

Commit

Permalink
Follow-up to 0fd7ba7
Browse files Browse the repository at this point in the history
- Fixed a compiler warning that showed when deactivating ACTIVEPATHSEARCH (special thanks to Napster for pointing it out)
  • Loading branch information
Playtester committed Nov 22, 2014
1 parent e6caa95 commit 0359420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/mob.c
Expand Up @@ -1068,7 +1068,6 @@ static int mob_ai_sub_hard_activesearch(struct block_list *bl,va_list ap)
{
struct mob_data *md;
struct block_list **target;
struct walkpath_data wpd;
int mode;
int dist;

Expand Down Expand Up @@ -1104,6 +1103,7 @@ static int mob_ai_sub_hard_activesearch(struct block_list *bl,va_list ap)
battle_check_range(&md->bl,bl,md->db->range2)
) { //Pick closest target?
#ifdef ACTIVEPATHSEARCH
struct walkpath_data wpd;
if (!path_search(&wpd, md->bl.m, md->bl.x, md->bl.y, bl->x, bl->y, 0, CELL_CHKNOPASS)) // Count walk path cells
return 0;
//Standing monsters use range2, walking monsters use range3
Expand Down

0 comments on commit 0359420

Please sign in to comment.