initialize weight in inner loop of DexNavPickTile

This commit is contained in:
ghoulslash 2024-11-11 12:39:26 -05:00
parent 931a05f12b
commit 418d127325

View File

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