use string.equals for string compare

This commit is contained in:
Chomp
2025-02-24 17:27:34 +00:00
parent ea671d2092
commit 0e141561b6
@@ -974,7 +974,7 @@ public class RagfairOfferGenerator(
itemAndPrice =>
itemAndPrice.Price >= desiredItemCostRouble - offerCostVarianceRoubles &&
itemAndPrice.Price <= desiredItemCostRouble + offerCostVarianceRoubles &&
itemAndPrice.Tpl != offerItems[0].Template // Don't allow the item being sold to be chosen
!string.Equals(itemAndPrice.Tpl, offerItems[0].Template, StringComparison.OrdinalIgnoreCase) // Don't allow the item being sold to be chosen
)
.ToList();