Always create the correct account even if gaps are needed

This commit is contained in:
Alex Beregszaszi
2017-10-20 14:23:37 +01:00
parent 81e9c679c4
commit faa0a662c7
+1 -1
View File
@@ -348,7 +348,7 @@ string const& RPCSession::accountCreate()
string const& RPCSession::accountCreateIfNotExists(size_t _id)
{
if (_id >= m_accounts.size())
while ((_id + 1) > m_accounts.size())
accountCreate();
return m_accounts[_id];
}