Browse Source

Reinitializing list's begin iterator after few elements were erased from the head

tags/v0.15.1
ENikS 7 years ago
parent
commit
cda45b5131
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/script/script.h

+ 1
- 1
src/script/script.h View File

@@ -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…
Cancel
Save