mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
incremented too soon in allusers
This commit is contained in:
parent
a80f6b5959
commit
32b6af280e
1 changed files with 2 additions and 1 deletions
|
|
@ -155,10 +155,11 @@ public:
|
||||||
for (const auto &u : users)
|
for (const auto &u : users)
|
||||||
{
|
{
|
||||||
//we know it contains this key but we call this func to grab mutex
|
//we know it contains this key but we call this func to grab mutex
|
||||||
temp[i++]["name"] = u.first;
|
temp[i]["name"] = u.first;
|
||||||
users.if_contains(u.first, [&temp, i](const User &u) {
|
users.if_contains(u.first, [&temp, i](const User &u) {
|
||||||
temp[i]["balance"] = (Json::UInt)u.balance;
|
temp[i]["balance"] = (Json::UInt)u.balance;
|
||||||
});
|
});
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue