mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a bug in STAmount::duplicate
This commit is contained in:
@@ -194,7 +194,7 @@ protected:
|
|||||||
bool mIsNative;
|
bool mIsNative;
|
||||||
|
|
||||||
void canonicalize();
|
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 STAmount* construct(SerializerIterator&, const char *name = NULL);
|
||||||
|
|
||||||
static const int cMinOffset = -96, cMaxOffset = 80;
|
static const int cMinOffset = -96, cMaxOffset = 80;
|
||||||
|
|||||||
Reference in New Issue
Block a user