Fix trading logic for trivial improvement

This commit is contained in:
Jeff 2024-07-08 14:21:50 -04:00
parent e63980858e
commit 135dc0b19e

View File

@ -287,7 +287,7 @@ impl Bot {
self.buy_prices self.buy_prices
.get(&item_id) .get(&item_id)
.map(|int| 0 - *int as i32) .map(|int| 0 - *int as i32)
.unwrap_or(i32::MAX) .unwrap_or(i32::MIN)
}) })
}; };