From 773016029961dba668d712b383b61c1cd3847ea8 Mon Sep 17 00:00:00 2001 From: Aleos Date: Thu, 23 Aug 2018 09:21:02 -0400 Subject: [PATCH] Corrected a compilation error (#3423) * Fixes #3422. * Resolves CELL_NOSTACK having a compile error when enabled. Thanks to @SnotraRM! --- src/map/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/map.cpp b/src/map/map.cpp index 70dfa0242e..6bfbc4b0f2 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -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