mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-10 04:31:07 +00:00
Merge pull request #4969
cda45b5 Reinitializing list's begin iterator after few elements were erased from the head (ENikS)
This commit is contained in:
commit
4b2b78b9f2
@ -544,7 +544,7 @@ public:
|
||||
{
|
||||
while (end() - pc >= (long)b.size() && memcmp(&pc[0], &b[0], b.size()) == 0)
|
||||
{
|
||||
erase(pc, pc + b.size());
|
||||
pc = erase(pc, pc + b.size());
|
||||
++nFound;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user