Mercurial > repos > IBBoard.WarFoundry.API
diff API/Objects/UnitEquipmentNumericSelection.cs @ 429:7179c585d31d
Re #356: Stack overflow with some equipment limits
* Add RawNumberTaken to be used in some locations to avoid indirect recursion
* Use new RawNumberTaken within Unit equipment counting method
Overflow fixed, but results not correct
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 06 Nov 2011 20:21:57 +0000 |
parents | 3c4a6403a88c |
children | c8002429ab45 |
line wrap: on
line diff
--- a/API/Objects/UnitEquipmentNumericSelection.cs Sun Oct 30 20:33:05 2011 +0000 +++ b/API/Objects/UnitEquipmentNumericSelection.cs Sun Nov 06 20:21:57 2011 +0000 @@ -23,7 +23,15 @@ { get { - return (int) AmountTaken; + return RawNumberTaken; + } + } + + public override int RawNumberTaken + { + get + { + return (int)AmountTaken; } }