Corrected a compilation error (#3423)

* Fixes #3422.
* Resolves CELL_NOSTACK having a compile error when enabled.
Thanks to @SnotraRM!
This commit is contained in:
Aleos
2018-08-23 09:21:02 -04:00
committed by GitHub
parent 429541fb81
commit 7730160299

View File

@@ -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