Sync fieldmap

This commit is contained in:
GriffinR
2022-09-02 19:29:35 -04:00
parent 0516f94837
commit 03a98c72bc
5 changed files with 18 additions and 17 deletions

View File

@@ -456,7 +456,7 @@ static void CheckForHiddenItemsInMapConnection(u8 taskId)
|| var2 > y
|| y >= height)
{
struct MapConnection *conn = GetConnectionAtCoords(x, y);
struct MapConnection *conn = GetMapConnectionAtPos(x, y);
if (conn && IsHiddenItemPresentInConnection(conn, x, y) == TRUE)
SetDistanceOfClosestHiddenItem(taskId, x - playerX, y - playerY);
}