Add an assert.

This commit is contained in:
JoelKatz
2012-05-17 23:49:02 -07:00
parent cd2e8b42ae
commit a2613dd785

View File

@@ -25,6 +25,7 @@ LedgerStateParms Ledger::writeBack(LedgerStateParms parms, SerializedLedgerEntry
if (create) if (create)
{ {
assert(!mAccountStateMap->hasItem(entry->getIndex()));
if(!mAccountStateMap->addGiveItem(item, false)) if(!mAccountStateMap->addGiveItem(item, false))
{ {
assert(false); assert(false);