diff --git a/src/Amount.cpp b/src/Amount.cpp index c398e49f3..28f3516cf 100644 --- a/src/Amount.cpp +++ b/src/Amount.cpp @@ -884,7 +884,7 @@ STAmount STAmount::convertToInternalAmount(uint64 displayAmount, uint64 totalNow STAmount STAmount::deserialize(SerializerIterator& it) { - auto_ptr s = construct(it, sfGeneric); + std::auto_ptr s(dynamic_cast(construct(it, sfGeneric))); STAmount ret(*s); return ret; }