Fix a bug in STAmount::duplicate

This commit is contained in:
JoelKatz
2012-05-18 20:53:38 -07:00
parent 7ab10c0012
commit 5118f23956

View File

@@ -194,7 +194,7 @@ protected:
bool mIsNative;
void canonicalize();
STAmount* duplicate() const { return new STAmount(name, mCurrency, mOffset, mValue); }
STAmount* duplicate() const { return new STAmount(name, mCurrency, mValue, mOffset); }
static STAmount* construct(SerializerIterator&, const char *name = NULL);
static const int cMinOffset = -96, cMaxOffset = 80;