fixed seg fault: tx merge updates vout parents to self

This commit is contained in:
woodser
2019-06-22 13:42:50 -04:00
parent 0e84bac8d2
commit e705aa5f21
+1 -1
View File
@@ -220,7 +220,7 @@ namespace monero {
// merge vouts
if (!other->vouts.empty()) {
for (const shared_ptr<MoneroOutput>& vout : other->vouts) vout->tx = shared_ptr<MoneroTx>(this);
for (const shared_ptr<MoneroOutput>& vout : other->vouts) vout->tx = self;
if (vouts.empty()) vouts = other->vouts;
else {