From 418d127325e0058aa88b65b74c1c872f78aee1bd Mon Sep 17 00:00:00 2001 From: ghoulslash Date: Mon, 11 Nov 2024 12:39:26 -0500 Subject: [PATCH] initialize weight in inner loop of DexNavPickTile --- src/dexnav.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dexnav.c b/src/dexnav.c index ba21bfeb8c..6db7207ec8 100644 --- a/src/dexnav.c +++ b/src/dexnav.c @@ -656,6 +656,7 @@ static bool8 DexNavPickTile(u8 environment, u8 areaX, u8 areaY, bool8 smallScan) continue; } + weight = 0; // initiliaze weight switch (environment) { case ENCOUNTER_TYPE_LAND: