Corrected a compilation error (#3423)
* Fixes #3422. * Resolves CELL_NOSTACK having a compile error when enabled. Thanks to @SnotraRM!
This commit is contained in:
@@ -295,7 +295,7 @@ static void map_addblcell(struct block_list *bl)
|
||||
|
||||
if( bl->m<0 || bl->x<0 || bl->x>=mapdata->xs || bl->y<0 || bl->y>=mapdata->ys || !(bl->type&BL_CHAR) )
|
||||
return;
|
||||
mapdata->cell[bl->x+bl->y*mapdata->cell_bl++;
|
||||
mapdata->cell[bl->x+bl->y*mapdata->xs].cell_bl++;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ static void map_delblcell(struct block_list *bl)
|
||||
|
||||
if( bl->m <0 || bl->x<0 || bl->x>=mapdata->xs || bl->y<0 || bl->y>=mapdata->ys || !(bl->type&BL_CHAR) )
|
||||
return;
|
||||
mapdata->cell[bl->x+bl->y*mapdata->cell_bl--;
|
||||
mapdata->cell[bl->x+bl->y*mapdata->xs].cell_bl--;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user