comparison 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
comparison
equal deleted inserted replaced
428:8f5125740316 429:7179c585d31d
21 21
22 public override int NumberTaken 22 public override int NumberTaken
23 { 23 {
24 get 24 get
25 { 25 {
26 return (int) AmountTaken; 26 return RawNumberTaken;
27 }
28 }
29
30 public override int RawNumberTaken
31 {
32 get
33 {
34 return (int)AmountTaken;
27 } 35 }
28 } 36 }
29 37
30 protected bool IsWholeNumber(double newValue) 38 protected bool IsWholeNumber(double newValue)
31 { 39 {