mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
🐛 blank reciever in logs
This commit is contained in:
parent
a898d6bb02
commit
94b52f6566
1 changed files with 4 additions and 3 deletions
|
|
@ -98,11 +98,12 @@ public:
|
|||
if (state)
|
||||
{
|
||||
Transaction temp(a_name, b_name, amount);
|
||||
Transaction temp2 = temp;
|
||||
users.modify_if(a_name, [&temp](User &a) {
|
||||
a.log.AddTrans(std::forward<Transaction>(temp));
|
||||
a.log.AddTrans(std::move(temp));
|
||||
});
|
||||
users.modify_if(b_name, [&temp](User &b) {
|
||||
b.log.AddTrans(std::move(temp));
|
||||
users.modify_if(b_name, [&temp2](User &b) {
|
||||
b.log.AddTrans(std::move(temp2));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue