void RestoreHousesData(HouseData_v1[] housesData) { DaggerfallBankManager.SetupHouses(); if (housesData == null) { return; } for (int i = 0; i < housesData.Length; i++) { if (housesData[i].regionIndex < 0 || housesData[i].regionIndex >= DaggerfallBankManager.Houses.Length) { continue; } DaggerfallBankManager.Houses[housesData[i].regionIndex] = housesData[i]; } }
void RestoreBankData(BankRecordData_v1[] bankData) { DaggerfallBankManager.SetupAccounts(); DaggerfallBankManager.SetupHouses(); // Covers case when loading old save with no house data if (bankData == null) { return; } for (int i = 0; i < bankData.Length; i++) { if (bankData[i].regionIndex < 0 || bankData[i].regionIndex >= DaggerfallBankManager.BankAccounts.Length) { continue; } DaggerfallBankManager.BankAccounts[bankData[i].regionIndex] = bankData[i]; } }