Fix icon not deselecting on sell (if it's selected)

This commit is contained in:
2025-09-14 04:07:51 -07:00
parent 8c6f5f7720
commit 995f5d743b

View File

@@ -274,6 +274,7 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
list.Remove(owned); list.Remove(owned);
marketplaceIconStorage.Data = list.ToArray(); marketplaceIconStorage.Data = list.ToArray();
marketplaceIconStorage.Balance += data.Price; marketplaceIconStorage.Balance += data.Price;
if (data.UUID == marketplaceIconStorage.Selected) marketplaceIconStorage.Selected = null;
iconPurchaseSound.Stop(); iconPurchaseSound.Stop();
iconPurchaseSound.Play(); iconPurchaseSound.Play();
balanceText.text = "You have " + Tools.FormatWithCommas(marketplaceIconStorage.Balance) + " coins to spend"; balanceText.text = "You have " + Tools.FormatWithCommas(marketplaceIconStorage.Balance) + " coins to spend";