Quick optimization to aggregate for Gold Ledger

This commit is contained in:
Kamron Batman 2018-02-21 20:36:21 -08:00
parent 5d61205240
commit f6d5689dee
No known key found for this signature in database
GPG key ID: 9F6247D24FA2AAD4

View file

@ -75,6 +75,7 @@ namespace Server.Mobiles
checks = bank.FindItemsByType(typeof(BankCheck));
balance += gold.OfType<Gold>().Aggregate(0L, (c, t) => c + t.Amount);
if (balance >= Int32.MaxValue) { return Int32.MaxValue; }
balance += checks.OfType<BankCheck>().Aggregate(0L, (c, t) => c + t.Worth);
}
else