Skip to content

Commit a5dbd10

Browse files
committed
fix(helper-functions): correct type casting for zone ID lookup
1 parent 9367745 commit a5dbd10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Retainers/HelperFunctions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ public static uint FindCheapestZone(IEnumerable<uint> zones)
282282
.DistinctBy(i => i.ZoneId)
283283
.ToDictionary(i => i.ZoneId, i => i.GilCost);
284284
return enumerable
285-
.Where(j => locationCostByZone.ContainsKey(j))
286-
.OrderBy(j => locationCostByZone[j])
285+
.Where(j => locationCostByZone.ContainsKey((ushort)j))
286+
.OrderBy(j => locationCostByZone[(ushort)j])
287287
.First();
288288
}
289289

0 commit comments

Comments
 (0)