Tiny cleanup.

This commit is contained in:
JoelKatz
2012-12-17 18:27:46 -08:00
parent 20d429cd7b
commit 690f2dac6a

View File

@@ -155,13 +155,12 @@ TER PaymentTransactor::doApply()
else
{
mTxnAccount->setFieldAmount(sfBalance, saSrcXRPBalance - saDstAmount);
sleDst->setFieldAmount(sfBalance, sleDst->getFieldAmount(sfBalance) + saDstAmount);
// re-arm the password change fee if we can and need to
if ((sleDst->getFlags() & lsfPasswordSpent)
sleDst->clearFlag(lsfPasswordSpent);
sleDst->setFieldAmount(sfBalance, sleDst->getFieldAmount(sfBalance) + saDstAmount);
terResult = tesSUCCESS;
}
}