summaryrefslogtreecommitdiff
path: root/src/debug/nakamura_debug_menu.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-06-20 19:54:16 -0500
committerGitHub <noreply@github.com>2018-06-20 19:54:16 -0500
commit7b7f4bb7d6f5d29b40e15aa4c6285c6885359e0d (patch)
tree8da3f8fae8c1c165e3435ee079f48631479b7611 /src/debug/nakamura_debug_menu.c
parentc6207577802db057298917089e427a6ab9e6edf9 (diff)
parent8bf4b1a917786c683ac30278108f74d31961274d (diff)
Merge pull request #636 from huderlem/assets
Map organization
Diffstat (limited to 'src/debug/nakamura_debug_menu.c')
-rw-r--r--src/debug/nakamura_debug_menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debug/nakamura_debug_menu.c b/src/debug/nakamura_debug_menu.c
index a20d58319..508dc048e 100644
--- a/src/debug/nakamura_debug_menu.c
+++ b/src/debug/nakamura_debug_menu.c
@@ -752,14 +752,14 @@ static const u8 Str_843E58D[] = _(
static u16 FishingPoints_CountFishingTilesInMapThird(u8 a0)
{
u16 retval = 0;
- u16 height = gMapHeader.mapData->height / 3;
+ u16 height = gMapHeader.mapLayout->height / 3;
u16 y;
u16 x;
u16 start = height * a0;
for (y = start; y < start + height; y++)
{
- for (x = 0; x < gMapHeader.mapData->width; x++)
+ for (x = 0; x < gMapHeader.mapLayout->width; x++)
{
if (MetatileBehavior_IsFeebasEncounterable(MapGridGetMetatileBehaviorAt(x + 7, y + 7)) == TRUE)
{
@@ -783,9 +783,9 @@ static u16 FishingPoints_GetIndexOfCurrentFishingSpot(void)
x -= 7;
y -= 7;
- for (yy = 0; yy < gMapHeader.mapData->height; yy++)
+ for (yy = 0; yy < gMapHeader.mapLayout->height; yy++)
{
- for (xx = 0; xx < gMapHeader.mapData->width; xx++)
+ for (xx = 0; xx < gMapHeader.mapLayout->width; xx++)
{
if (MetatileBehavior_IsFeebasEncounterable(MapGridGetMetatileBehaviorAt(xx + 7, yy + 7)) == TRUE)
{