aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-09-25 15:52:31 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-09-25 15:58:56 +0200
commit4b2b78b9f2bd339cc4505996258e00c186e91792 (patch)
tree7c102803468f72ac778b293f13139519ea7a179b /src/script
parentf66f986a25e1949d78a3b4991434465bc9d7eba3 (diff)
parentcda45b5131c3546b870d8cea3191fb29df182b27 (diff)
Merge pull request #4969
cda45b5 Reinitializing list's begin iterator after few elements were erased from the head (ENikS)
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script.h b/src/script/script.h
index 4aea439e01..caf176476f 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -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;
}
}