Mercurial > repos > IBDev-IBBoard.WarFoundry.API
changeset 174:33433862467f
* Make use of local variable
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 20 Oct 2009 19:14:30 +0000 |
parents | e83fc7b493f4 |
children | 996816199b72 |
files | api/Util/UnitEquipmentUtil.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Util/UnitEquipmentUtil.cs Mon Oct 12 19:51:19 2009 +0000 +++ b/api/Util/UnitEquipmentUtil.cs Tue Oct 20 19:14:30 2009 +0000 @@ -61,7 +61,7 @@ List<UnitEquipmentItem> items = new List<UnitEquipmentItem>(); UnitEquipmentItem[] currItems = unit.GetEquipment(); - foreach (UnitEquipmentItem unitItem in unit.GetEquipment()) + foreach (UnitEquipmentItem unitItem in currItems) { if (!ItemsAreMutuallyExclusive(unitItem, item)) {