From 63fb63c73b4ec62f3b415607d879af09c4924dc8 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Wed, 10 Feb 2016 14:38:46 +0100 Subject: [PATCH] [mc] Fix binary search removal in ObjectInformation::remove_global_variable() --- src/mc/ObjectInformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/ObjectInformation.cpp b/src/mc/ObjectInformation.cpp index 9d66b0ebb4..94134d660f 100644 --- a/src/mc/ObjectInformation.cpp +++ b/src/mc/ObjectInformation.cpp @@ -127,7 +127,7 @@ void ObjectInformation::remove_global_variable(const char* name) end++; // Remove the whole range: this->global_variables.erase( - this->global_variables.begin() + cursor, + this->global_variables.begin() + start, this->global_variables.begin() + end + 1); return; } else if (cmp < 0) -- 2.20.1