public static void SetCurrency(int id, FCurrency currency) { if (id < currencies.Length) { currencies[id] = currency; } }